Class: Runbook::Statements::Download
- Inherits:
-
Runbook::Statement
- Object
- Node
- Runbook::Statement
- Runbook::Statements::Download
- Defined in:
- lib/runbook/statements/download.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#ssh_config ⇒ Object
readonly
Returns the value of attribute ssh_config.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Attributes inherited from Runbook::Statement
Instance Method Summary collapse
-
#initialize(from, to: nil, ssh_config: nil, options: {}) ⇒ Download
constructor
A new instance of Download.
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(from, to: nil, ssh_config: nil, options: {}) ⇒ Download
Returns a new instance of Download.
5 6 7 8 9 10 |
# File 'lib/runbook/statements/download.rb', line 5 def initialize(from, to: nil, ssh_config: nil, options: {}) @from = from @to = to @ssh_config = ssh_config @options = end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
3 4 5 |
# File 'lib/runbook/statements/download.rb', line 3 def from @from end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/runbook/statements/download.rb', line 3 def @options end |
#ssh_config ⇒ Object (readonly)
Returns the value of attribute ssh_config.
3 4 5 |
# File 'lib/runbook/statements/download.rb', line 3 def ssh_config @ssh_config end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
3 4 5 |
# File 'lib/runbook/statements/download.rb', line 3 def to @to end |