Method: LonoCfn::Base#check_files

Defined in:
lib/lono_cfn/base.rb

#check_filesObject



60
61
62
63
64
65
66
67
68
69
# File 'lib/lono_cfn/base.rb', line 60

def check_files
  errors, warns = [], []
  unless File.exist?(@template_path)
    errors << "Template file missing: could not find #{@template_path}"
  end
  if @options[:params] && !File.exist?(@params_path)
    warns << "Parameters file missing: could not find #{@params_path}"
  end
  [errors, warns]
end