class Swa::CloudFormation::Stack

Public Instance Methods

id() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 10
def id
  name
end
last_modified_at() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 24
def last_modified_at
  stack.last_updated_time || stack.creation_time
end
outputs() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 40
def outputs
  stackup_stack.outputs
end
parameters() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 36
def parameters
  stackup_stack.parameters
end
resources() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 44
def resources
  stackup_stack.resources
end
summary() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 14
def summary
  [
    pad(name, 44),
    pad(stack.stack_status, 24),
    last_modified_at.iso8601
  ].join("  ")
end
template_body() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 28
def template_body
  stackup_stack.template_body
end
template_data() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 32
def template_data
  stackup_stack.template
end

Private Instance Methods

stackup_stack() click to toggle source
# File lib/swa/cloud_formation/stack.rb, line 52
def stackup_stack
  Stackup::Stack.new(name, stack.client)
end