Class: SSHKit::Runner::Group
- Inherits:
-
Sequential
- Object
- Abstract
- Sequential
- SSHKit::Runner::Group
- Defined in:
- lib/sshkit/runners/group.rb
Instance Attribute Summary collapse
-
#group_size ⇒ Object
Returns the value of attribute group_size.
Attributes inherited from Sequential
Attributes inherited from Abstract
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(hosts, options = nil, &block) ⇒ Group
constructor
A new instance of Group.
Constructor Details
#initialize(hosts, options = nil, &block) ⇒ Group
Returns a new instance of Group.
8 9 10 11 |
# File 'lib/sshkit/runners/group.rb', line 8 def initialize(hosts, = nil, &block) super(hosts, , &block) @group_size = @options[:limit] || 2 end |
Instance Attribute Details
#group_size ⇒ Object
Returns the value of attribute group_size.
6 7 8 |
# File 'lib/sshkit/runners/group.rb', line 6 def group_size @group_size end |