Class: Dynamocli::AWS::Stack
- Inherits:
-
Object
- Object
- Dynamocli::AWS::Stack
- Extended by:
- Forwardable
- Defined in:
- lib/dynamocli/aws/stack.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#original_template ⇒ Object
readonly
Returns the value of attribute original_template.
-
#policy_body ⇒ Object
readonly
Returns the value of attribute policy_body.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#template_body ⇒ Object
readonly
Returns the value of attribute template_body.
-
#template_without_table ⇒ Object
readonly
Returns the value of attribute template_without_table.
Instance Method Summary collapse
- #deploying? ⇒ Boolean
-
#initialize(table_name:, table_resource:, cloudformation: nil, logger: nil) ⇒ Stack
constructor
A new instance of Stack.
Constructor Details
#initialize(table_name:, table_resource:, cloudformation: nil, logger: nil) ⇒ Stack
Returns a new instance of Stack.
17 18 19 20 21 22 23 24 |
# File 'lib/dynamocli/aws/stack.rb', line 17 def initialize(table_name:, table_resource:, cloudformation: nil, logger: nil) @table_name = table_name @table_resource = table_resource @cloudformation = cloudformation || CLOUDFORMARTION.new @logger = logger || LOGGER.new set_attributes_now_because_they_will_change end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/dynamocli/aws/stack.rb', line 11 def name @name end |
#original_template ⇒ Object (readonly)
Returns the value of attribute original_template.
11 12 13 |
# File 'lib/dynamocli/aws/stack.rb', line 11 def original_template @original_template end |
#policy_body ⇒ Object (readonly)
Returns the value of attribute policy_body.
11 12 13 |
# File 'lib/dynamocli/aws/stack.rb', line 11 def policy_body @policy_body end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
11 12 13 |
# File 'lib/dynamocli/aws/stack.rb', line 11 def resources @resources end |
#template_body ⇒ Object (readonly)
Returns the value of attribute template_body.
11 12 13 |
# File 'lib/dynamocli/aws/stack.rb', line 11 def template_body @template_body end |
#template_without_table ⇒ Object (readonly)
Returns the value of attribute template_without_table.
11 12 13 |
# File 'lib/dynamocli/aws/stack.rb', line 11 def template_without_table @template_without_table end |
Instance Method Details
#deploying? ⇒ Boolean
26 27 28 |
# File 'lib/dynamocli/aws/stack.rb', line 26 def current_status != DEPLOY_COMPLETED_KEY end |