Class: SSHKit::Runner::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/sshkit/runners/abstract.rb

Direct Known Subclasses

Null, Parallel, Sequential

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hosts, options = nil, &block) ⇒ Abstract

Returns a new instance of Abstract.



9
10
11
12
13
# File 'lib/sshkit/runners/abstract.rb', line 9

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.



7
8
9
# File 'lib/sshkit/runners/abstract.rb', line 7

def block
  @block
end

#hostsObject (readonly)

Returns the value of attribute hosts.



7
8
9
# File 'lib/sshkit/runners/abstract.rb', line 7

def hosts
  @hosts
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/sshkit/runners/abstract.rb', line 7

def options
  @options
end