Class: SSHKit::Runner::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/j-cap-recipes/sshkit_runner_patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = nil, &block)
  @hosts   = Array(hosts)
  @options = options || {}
  @block   = block
end

Instance Attribute Details

#blockObject (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

#hostsObject (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

#optionsObject (readonly)

Returns the value of attribute options.



11
12
13
# File 'lib/j-cap-recipes/sshkit_runner_patch.rb', line 11

def options
  @options
end