Module: Lono::AwsServices::Helper

Includes:
Stack, StackSet
Included in:
Lono::AwsServices
Defined in:
lib/lono/aws_services/helper.rb

Instance Method Summary collapse

Methods included from StackSet

#find_stack_set, #stack_set_exists?

Methods included from Stack

#find_stack, #stack_exists?

Instance Method Details

#rollback_complete?(stack) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/lono/aws_services/helper.rb', line 6

def rollback_complete?(stack)
  stack&.stack_status == 'ROLLBACK_COMPLETE'
end

#testing_update?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/lono/aws_services/helper.rb', line 10

def testing_update?
  ENV['LONO_TEST'] && self.class.name == "LonoCfn::Update"
end