Class: Runbook::Statements::Capture
- Inherits:
-
Runbook::Statement
- Object
- Node
- Runbook::Statement
- Runbook::Statements::Capture
- Defined in:
- lib/runbook/statements/capture.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#into ⇒ Object
readonly
Returns the value of attribute into.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#ssh_config ⇒ Object
readonly
Returns the value of attribute ssh_config.
-
#strip ⇒ Object
readonly
Returns the value of attribute strip.
Attributes inherited from Runbook::Statement
Instance Method Summary collapse
-
#initialize(cmd, into:, ssh_config: nil, raw: false, strip: true) ⇒ Capture
constructor
A new instance of Capture.
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?, #visited!, #visited?
Constructor Details
#initialize(cmd, into:, ssh_config: nil, raw: false, strip: true) ⇒ Capture
Returns a new instance of Capture.
5 6 7 8 9 10 11 |
# File 'lib/runbook/statements/capture.rb', line 5 def initialize(cmd, into:, ssh_config: nil, raw: false, strip: true) @cmd = cmd @into = into @ssh_config = ssh_config @raw = raw @strip = strip end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
3 4 5 |
# File 'lib/runbook/statements/capture.rb', line 3 def cmd @cmd end |
#into ⇒ Object (readonly)
Returns the value of attribute into.
3 4 5 |
# File 'lib/runbook/statements/capture.rb', line 3 def into @into end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
3 4 5 |
# File 'lib/runbook/statements/capture.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/capture.rb', line 3 def ssh_config @ssh_config end |
#strip ⇒ Object (readonly)
Returns the value of attribute strip.
3 4 5 |
# File 'lib/runbook/statements/capture.rb', line 3 def strip @strip end |