Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/vagrant-orchestrate/command/push.rb
Overview
Instance Method Summary collapse
Instance Method Details
#in_groups(num_groups) ⇒ Object
13 14 15 16 17 |
# File 'lib/vagrant-orchestrate/command/push.rb', line 13 def in_groups(num_groups) return [] if num_groups == 0 slice_size = (size / Float(num_groups)).ceil each_slice(slice_size).to_a end |