Class: Bcome::Orchestrator::DirectCommand::Instance
- Includes:
- ValidateAndSet
- Defined in:
- lib/orchestrator/direct_command/instance.rb
Instance Attribute Summary collapse
-
#bootstrap ⇒ Object
readonly
Returns the value of attribute bootstrap.
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#success_exit_codes ⇒ Object
readonly
Returns the value of attribute success_exit_codes.
Instance Method Summary collapse
-
#initialize(json) ⇒ Instance
constructor
A new instance of Instance.
- #json_attributes ⇒ Object
Methods included from ValidateAndSet
Constructor Details
#initialize(json) ⇒ Instance
Returns a new instance of Instance.
8 9 10 11 12 |
# File 'lib/orchestrator/direct_command/instance.rb', line 8 def initialize(json) validate_and_set(json) @bootstrap = json[:bootstrap] ? json[:bootstrap] : false @success_exit_codes = json[:success_exit_codes] end |
Instance Attribute Details
#bootstrap ⇒ Object (readonly)
Returns the value of attribute bootstrap.
6 7 8 |
# File 'lib/orchestrator/direct_command/instance.rb', line 6 def bootstrap @bootstrap end |
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
6 7 8 |
# File 'lib/orchestrator/direct_command/instance.rb', line 6 def cmd @cmd end |
#success_exit_codes ⇒ Object (readonly)
Returns the value of attribute success_exit_codes.
6 7 8 |
# File 'lib/orchestrator/direct_command/instance.rb', line 6 def success_exit_codes @success_exit_codes end |
Instance Method Details
#json_attributes ⇒ Object
14 15 16 |
# File 'lib/orchestrator/direct_command/instance.rb', line 14 def json_attributes [:cmd] end |