Class: Lono::Cfn::Status

Inherits:
Cfn::Status
  • Object
show all
Defined in:
lib/lono/cfn/status.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Status.



3
4
5
6
# File 'lib/lono/cfn/status.rb', line 3

def initialize(stack_name, options={})
  super
  @stack_name = switch_current(stack_name)
end

Instance Method Details

#switch_current(stack_name) ⇒ Object



8
9
10
# File 'lib/lono/cfn/status.rb', line 8

def switch_current(stack_name)
  Lono::Cfn::Current.name!(stack_name)
end