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.
- data/lib/chef/knife/update_run.rb +3 -1
- data/lib/knife-update/version.rb +1 -1
- metadata +4 -4
|
@@ -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(
|
|
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}" }
|
data/lib/knife-update/version.rb
CHANGED
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.
|
|
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
|
|
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:
|
|
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:
|
|
90
|
+
hash: 2057944628073107268
|
|
91
91
|
requirements: []
|
|
92
92
|
rubyforge_project:
|
|
93
93
|
rubygems_version: 1.8.25
|