Method: LonoCfn::Base#initialize

Defined in:
lib/lono_cfn/base.rb

#initialize(stack_name, options = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/lono_cfn/base.rb', line 9

def initialize(stack_name, options={})
  @stack_name = stack_name
  @options = options
  @project_root = options[:project_root] || '.'

  template_name = options[:template] || @stack_name
  params_name = options[:params] || template_name
  @template_path = get_source_path(template_name, :template)
  @params_path = get_source_path(params_name, :params)
  puts "Using template: #{@template_path}"
  puts "Using parameters: #{@params_path}"
end