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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chef-busboy.rb +2 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b40b3516b2bf5409f1bc5321f8fca808d6d94a1
4
- data.tar.gz: 0f71ea9bbb5f2a6e8ebee05702e2e97a03872a60
3
+ metadata.gz: f7bd58f16011e6e7ff12d8c81d8972b13deb2897
4
+ data.tar.gz: 935b222fd7ed544196a4f7f975f9662ee2ced9e1
5
5
  SHA512:
6
- metadata.gz: ab6c4d9933a9991f5c5e0df595b375409d033d1d1bb945e0f9b674c58dbc2d140cd2a41baa64e0d9263ca1912cb65e3191717e26ea2f6e6b77d8705007d0821c
7
- data.tar.gz: ae7af6a5cd4d15aa59d7b626448e1141078868503614d86c193f6154fe3f6978330909cb75974ce71364412523cae6b291ac98669067a078aa4eeb4c8b0c9d5b
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
- count = 0
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 = get_connection.node.find("#{node.name}")
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-busboy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nolan Davidson