Class: CuffSert::StackConfig
- Inherits:
-
Object
- Object
- CuffSert::StackConfig
- Defined in:
- lib/cuffsert/metadata.rb
Instance Attribute Summary collapse
-
#aws_region ⇒ Object
Returns the value of attribute aws_region.
-
#op_mode ⇒ Object
Returns the value of attribute op_mode.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#selected_path ⇒ Object
Returns the value of attribute selected_path.
-
#stack_uri ⇒ Object
Returns the value of attribute stack_uri.
-
#stackname ⇒ Object
Returns the value of attribute stackname.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#tags ⇒ Object
Returns the value of attribute tags.
Instance Method Summary collapse
- #append_path(lmnt) ⇒ Object
-
#initialize ⇒ StackConfig
constructor
A new instance of StackConfig.
- #update_from(metadata) ⇒ Object
Constructor Details
#initialize ⇒ StackConfig
9 10 11 12 13 14 15 |
# File 'lib/cuffsert/metadata.rb', line 9 def initialize @aws_region = ENV['AWS_REGION'] || ENV['AWS_DEFAULT_REGION'] || 'us-east-1' @selected_path = [] @op_mode = :normal @parameters = {} @tags = {} end |
Instance Attribute Details
#aws_region ⇒ Object
Returns the value of attribute aws_region.
6 7 8 |
# File 'lib/cuffsert/metadata.rb', line 6 def aws_region @aws_region end |
#op_mode ⇒ Object
Returns the value of attribute op_mode.
6 7 8 |
# File 'lib/cuffsert/metadata.rb', line 6 def op_mode @op_mode end |
#parameters ⇒ Object
Returns the value of attribute parameters.
7 8 9 |
# File 'lib/cuffsert/metadata.rb', line 7 def parameters @parameters end |
#selected_path ⇒ Object
Returns the value of attribute selected_path.
6 7 8 |
# File 'lib/cuffsert/metadata.rb', line 6 def selected_path @selected_path end |
#stack_uri ⇒ Object
Returns the value of attribute stack_uri.
6 7 8 |
# File 'lib/cuffsert/metadata.rb', line 6 def stack_uri @stack_uri end |
#stackname ⇒ Object
Returns the value of attribute stackname.
6 7 8 |
# File 'lib/cuffsert/metadata.rb', line 6 def stackname @stackname end |
#suffix ⇒ Object
Returns the value of attribute suffix.
7 8 9 |
# File 'lib/cuffsert/metadata.rb', line 7 def suffix @suffix end |
#tags ⇒ Object
Returns the value of attribute tags.
7 8 9 |
# File 'lib/cuffsert/metadata.rb', line 7 def @tags end |
Instance Method Details
#append_path(lmnt) ⇒ Object
17 18 19 |
# File 'lib/cuffsert/metadata.rb', line 17 def append_path(lmnt) @selected_path << lmnt end |
#update_from(metadata) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/cuffsert/metadata.rb', line 21 def update_from() @stackname = [:stackname] || @stackname @suffix = [:suffix] || @suffix @parameters.merge!([:parameters] || {}) @tags.merge!([:tags] || {}) self end |