Class: Lono::Cfn::Status

Inherits:
CfnStatus
  • Object
show all
Includes:
Util
Defined in:
lib/lono/cfn/status.rb

Instance Method Summary collapse

Methods included from Util

#are_you_sure?

Constructor Details

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

Returns a new instance of Status.



5
6
7
8
# File 'lib/lono/cfn/status.rb', line 5

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

Instance Method Details

#switch_current(stack_name) ⇒ Object



10
11
12
# File 'lib/lono/cfn/status.rb', line 10

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