knife-update 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,8 @@ require 'chef/knife/update'
21
21
  class Chef
22
22
  class Knife
23
23
  class UpdateRun < Knife
24
+ BATCH_SIZE = 50
25
+
24
26
  banner 'knife update run (options)'
25
27
 
26
28
  option :ssh_user,
@@ -100,7 +102,7 @@ class Chef
100
102
  if nodes.size > 0
101
103
  if !config[:dry_run]
102
104
  ui.confirm "Are you sure you want to update #{nodes.size} nodes to chef #{target_version}"
103
- update_ssh(nodes, target_version).run
105
+ nodes.each_slice(BATCH_SIZE) { |batch| update_ssh(batch, target_version).run }
104
106
  else
105
107
  ui.msg "Dry run. The following #{nodes.size} nodes would get updated:"
106
108
  nodes.each { |node| ui.msg " #{node.fqdn}" }
@@ -18,7 +18,7 @@
18
18
 
19
19
  module Knife
20
20
  module Update
21
- VERSION = '0.0.5'
21
+ VERSION = '0.0.6'
22
22
  MAJOR, MINOR, TINY = VERSION.split('.')
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-27 00:00:00.000000000 Z
12
+ date: 2013-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: 3641408808399590109
81
+ hash: 2057944628073107268
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: 3641408808399590109
90
+ hash: 2057944628073107268
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.25