Class: Runbook::Statements::Command
- Inherits:
-
Runbook::Statement
- Object
- Node
- Runbook::Statement
- Runbook::Statements::Command
- Defined in:
- lib/runbook/statements/command.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#ssh_config ⇒ Object
readonly
Returns the value of attribute ssh_config.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(cmd, ssh_config: nil, raw: false) ⇒ Command
constructor
A new instance of Command.
Methods inherited from Runbook::Statement
Methods included from Hooks::Invoker
#_execute_after_hooks, #_execute_around_hooks, #_execute_before_hooks, #invoke_with_hooks
Methods inherited from Node
#dynamic!, #dynamic?, #parent_entity, #visited!, #visited?
Constructor Details
#initialize(cmd, ssh_config: nil, raw: false) ⇒ Command
Returns a new instance of Command.
5 6 7 8 9 |
# File 'lib/runbook/statements/command.rb', line 5 def initialize(cmd, ssh_config: nil, raw: false) @cmd = cmd @ssh_config = ssh_config @raw = raw end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
3 4 5 |
# File 'lib/runbook/statements/command.rb', line 3 def cmd @cmd end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
3 4 5 |
# File 'lib/runbook/statements/command.rb', line 3 def raw @raw end |
#ssh_config ⇒ Object (readonly)
Returns the value of attribute ssh_config.
3 4 5 |
# File 'lib/runbook/statements/command.rb', line 3 def ssh_config @ssh_config end |