chef-metal 0.12 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a7515b106ed73e6422effeb0d2852898cdc6881
4
- data.tar.gz: 3ea617d4302dad8f8b3578a07dc09b28aba3bcf8
3
+ metadata.gz: 73917076444ad1bda8ffa1d5b3a2d44c6f13e401
4
+ data.tar.gz: 04f07c5b3d36891a3c961b1d8effd2154e34f71b
5
5
  SHA512:
6
- metadata.gz: a3b431067edb0ae001832ef82ddcf55e1e453a58b089a0df61c2722ef9ce6e75b4a0887c2a9b524534f20d54c8058c79e01326024491800e179eebf384c98254
7
- data.tar.gz: 6faab0a7397d677e9c46fcc314f8efc8ee3067038ce92d69096822a1bc5afceaf0cb8d7232fa7d062769cfd8309d141ebd27e633f0866397f9c4d59d9237ca69
6
+ metadata.gz: 102130f0959c12ce7c6b22d3d1ef15bd30aed149301af19db398d83bc4eba212fe7aceda10d2c27232e65f4c5fe341787d49a4703fe2a3c693f91564c8245f1a
7
+ data.tar.gz: 6c2a7613ddd0da1090402c152579fde5de9279204ddd06a477e6c5d0e2fcd1b1cd4d342f99a84d32a7edce9c8281733aed233c9327c20879f7673df3f97ae585
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Chef Metal Changelog
2
2
 
3
+ ## 0.12.1 (6/18/2014)
4
+
5
+ - fix machine_batch action :setup
6
+ - fix issue with default machine_batch names being non-unique across recipes
7
+
3
8
  ## 0.12 (6/18/2014)
4
9
 
5
10
  - Remove chef-metal-fog and chef-metal-vagrant as dependencies (install whatever things you want directly!)
@@ -38,7 +38,7 @@ class Chef::Provider::MachineBatch < Chef::Provider::LWRPBase
38
38
  action :setup do
39
39
  with_ready_machines do |m|
40
40
  prefixed_handler = ChefMetal::AddPrefixActionHandler.new(action_handler, "[#{m[:spec].name}] ")
41
- machine[:machine].setup_convergence(prefixed_handler)
41
+ m[:machine].setup_convergence(prefixed_handler)
42
42
  m[:spec].save(prefixed_handler)
43
43
  Chef::Provider::Machine.upload_files(prefixed_handler, m[:machine], m[:files])
44
44
  end
@@ -39,14 +39,15 @@ class Chef
39
39
  end
40
40
  end
41
41
 
42
+ @@next_machine_batch_index = 1
43
+
42
44
  def machine_batch_default_name
43
- if @machine_batch_index
44
- @machine_batch_index += 1
45
- "default#{@machine_batch_index}"
45
+ if @@next_machine_batch_index > 1
46
+ "default#{@@next_machine_batch_index}"
46
47
  else
47
- @machine_batch_index = 0
48
48
  "default"
49
49
  end
50
+ @@next_machine_batch_index += 1
50
51
  end
51
52
 
52
53
  def machine_batch(name = nil, &block)
@@ -1,3 +1,3 @@
1
1
  module ChefMetal
2
- VERSION = '0.12'
2
+ VERSION = '0.12.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-metal
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.12'
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser