chef-busboy 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef-busboy.rb +2 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7bd58f16011e6e7ff12d8c81d8972b13deb2897
|
4
|
+
data.tar.gz: 935b222fd7ed544196a4f7f975f9662ee2ced9e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41def709ce978ba753d9f9ed6299545ae50519ea09dca36d9b12c23ba3df3da0974326e77b3997e5e9c8fda7b98179461baefc493e6a4404292ec51b7020cb98
|
7
|
+
data.tar.gz: 127d0601c7f8a275ff989c94e607e194b6ba1ad9c9c81769c5a0085613c9a3ebfc75b6a5365655fc345f38ebaf8a3cb5396f3b6ee13a9a0de50d32afa913a438
|
data/lib/chef-busboy.rb
CHANGED
@@ -42,17 +42,12 @@ class ChefBusBoy < Thor
|
|
42
42
|
answer = get_user_confirmation("These are the nodes that matched your search and will be updated. Would you like to continue? y/n")
|
43
43
|
if answer
|
44
44
|
puts "Selections confirmed...updating environments now..."
|
45
|
-
|
45
|
+
update_node_list(results)
|
46
46
|
results.each do |node|
|
47
47
|
puts "Changing #{node.name}'s environment to #{options[:environment]}"
|
48
|
-
full_node =
|
48
|
+
full_node = @@chef_server.node.find("#{node.name}")
|
49
49
|
full_node.chef_environment = "#{options[:environment]}"
|
50
50
|
@@chef_server.node.update(full_node)
|
51
|
-
count = count + 1
|
52
|
-
if count > 50
|
53
|
-
@@chef_server = nil
|
54
|
-
@@chef_server = get_connection
|
55
|
-
end
|
56
51
|
end
|
57
52
|
else
|
58
53
|
puts "Transaction cancelled. Not updating any nodes"
|