Class: SSHKit::Runner::Abstract
- Inherits:
-
Object
- Object
- SSHKit::Runner::Abstract
- Defined in:
- lib/j-cap-recipes/sshkit_runner_patch.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#hosts ⇒ Object
readonly
Returns the value of attribute hosts.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(hosts, options = nil, &block) ⇒ Abstract
constructor
A new instance of Abstract.
Constructor Details
#initialize(hosts, options = nil, &block) ⇒ Abstract
Returns a new instance of Abstract.
13 14 15 16 17 |
# File 'lib/j-cap-recipes/sshkit_runner_patch.rb', line 13 def initialize(hosts, = nil, &block) @hosts = Array(hosts) @options = || {} @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
11 12 13 |
# File 'lib/j-cap-recipes/sshkit_runner_patch.rb', line 11 def block @block end |
#hosts ⇒ Object (readonly)
Returns the value of attribute hosts.
11 12 13 |
# File 'lib/j-cap-recipes/sshkit_runner_patch.rb', line 11 def hosts @hosts end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/j-cap-recipes/sshkit_runner_patch.rb', line 11 def @options end |