Class: Swa::CloudFormation::Stack
Instance Attribute Summary
Attributes inherited from Resource
#aws_resource
Instance Method Summary
collapse
Methods inherited from Resource
#data, delegate, #initialize, list
Constructor Details
This class inherits a constructor from Swa::Resource
Instance Method Details
#id ⇒ Object
10
11
12
|
# File 'lib/swa/cloud_formation/stack.rb', line 10
def id
name
end
|
#last_modified_at ⇒ Object
24
25
26
|
# File 'lib/swa/cloud_formation/stack.rb', line 24
def last_modified_at
stack.last_updated_time || stack.creation_time
end
|
#outputs ⇒ Object
40
41
42
|
# File 'lib/swa/cloud_formation/stack.rb', line 40
def outputs
stackup_stack.outputs
end
|
#parameters ⇒ Object
36
37
38
|
# File 'lib/swa/cloud_formation/stack.rb', line 36
def parameters
stackup_stack.parameters
end
|
#resources ⇒ Object
44
45
46
|
# File 'lib/swa/cloud_formation/stack.rb', line 44
def resources
stackup_stack.resources
end
|
#summary ⇒ Object
14
15
16
17
18
19
20
|
# 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 ⇒ Object
28
29
30
|
# File 'lib/swa/cloud_formation/stack.rb', line 28
def template_body
stackup_stack.template_body
end
|
#template_data ⇒ Object
32
33
34
|
# File 'lib/swa/cloud_formation/stack.rb', line 32
def template_data
stackup_stack.template
end
|