Class: Elasticity::BootstrapAction
- Inherits:
-
Object
- Object
- Elasticity::BootstrapAction
- Defined in:
- lib/elasticity/bootstrap_action.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#option ⇒ Object
Returns the value of attribute option.
-
#script ⇒ Object
Returns the value of attribute script.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(script, option, value) ⇒ BootstrapAction
constructor
A new instance of BootstrapAction.
- #to_aws_bootstrap_action ⇒ Object
Constructor Details
#initialize(script, option, value) ⇒ BootstrapAction
Returns a new instance of BootstrapAction.
10 11 12 13 14 15 |
# File 'lib/elasticity/bootstrap_action.rb', line 10 def initialize(script, option, value) @name = 'Elasticity Bootstrap Action' @option = option @value = value @script = script end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/elasticity/bootstrap_action.rb', line 5 def name @name end |
#option ⇒ Object
Returns the value of attribute option.
6 7 8 |
# File 'lib/elasticity/bootstrap_action.rb', line 6 def option @option end |
#script ⇒ Object
Returns the value of attribute script.
8 9 10 |
# File 'lib/elasticity/bootstrap_action.rb', line 8 def script @script end |
#value ⇒ Object
Returns the value of attribute value.
7 8 9 |
# File 'lib/elasticity/bootstrap_action.rb', line 7 def value @value end |
Instance Method Details
#to_aws_bootstrap_action ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/elasticity/bootstrap_action.rb', line 17 def to_aws_bootstrap_action { :name => @name, :script_bootstrap_action => { :path => @script, :args => [@option, @value] } } end |