chef-provisioning 0.15.2 → 0.15.3

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: 03e83e4f20ff02af375d7503eb293704311fb372
4
- data.tar.gz: ff6cb7c0d6fc91b1789c778a01373215fbfe60a7
3
+ metadata.gz: 028eba9bf5dc6c670cf8f4273bc6442970bc12c8
4
+ data.tar.gz: 7b0ed9771bbd83bc75286dc019b72634bc4bf3b3
5
5
  SHA512:
6
- metadata.gz: 106cd2fb4ec6f4018c6d86fe80625b759ab4c2462e48c742eb5800cb81b073cf1909b61b530448660a3957af9e9d1b047ab061c47b88fa3ad267f45821227962
7
- data.tar.gz: 9e6508184546da1c3bd093445f81173e20fa43afa3c266a29f979efd696b5aeaafc886a84504388eafda6ac66d7b8a582ca9e1c7a4f1635edd05734997368e7d
6
+ metadata.gz: 48b12bc4c0825276dcc4da3da0ca6de79a422d934313c974b3b133b4c7f10814576858580a22e4addae2b1465a3cfd4dd98fdcc47c482ca982c34ad50edc83d2
7
+ data.tar.gz: ef7fe52f5e22e4dcfcfad842c7b97db089799d47264e948bd4e4661f66c97e1cb9742efdd285e441498c1594c8f669fcb467d1bfb6e66661c3f3672886fdf48c
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Chef Provisioning Changelog
2
+ ## 0.16 (11/4/2014)
3
+
4
+ - Make it work with Chef 12
5
+
2
6
  ## 0.15.2 (11/4/2014)
3
7
 
4
8
  - Remove Chef as a dependency so that it can be a dep of Chef
@@ -45,8 +45,12 @@ module Provisioning
45
45
  scheme = driver_url.split(':', 2)[0]
46
46
  begin
47
47
  require "chef/provisioning/driver_init/#{scheme}"
48
- rescue LoadError => e
49
- require "chef_metal/driver_init/#{scheme}"
48
+ rescue LoadError
49
+ begin
50
+ require "chef_metal/driver_init/#{scheme}"
51
+ rescue LoadError
52
+ require "chef/provisioning/driver_init/#{scheme}"
53
+ end
50
54
  end
51
55
  driver_class = @@registered_driver_classes[scheme]
52
56
 
@@ -90,7 +90,7 @@ class Chef
90
90
 
91
91
  class RunContext
92
92
  def chef_provisioning
93
- @chef_provisioning ||= Chef::Provisioning::ChefRunData.new(config)
93
+ node.run_state[:chef_provisioning] ||= Chef::Provisioning::ChefRunData.new(config)
94
94
  end
95
95
  alias :chef_metal :chef_provisioning
96
96
  end
@@ -1,5 +1,5 @@
1
1
  class Chef
2
2
  module Provisioning
3
- VERSION = '0.15.2'
3
+ VERSION = '0.15.3'
4
4
  end
5
5
  end
@@ -43,7 +43,7 @@ class Chef
43
43
  #
44
44
  # Without this, the first resource's machine options will obliterate the second
45
45
  # resource's machine options, and then unexpected (and undesired) things happen.
46
- def load_prior_resource
46
+ def load_prior_resource(*args)
47
47
  Chef::Log.debug "Overloading #{self.resource_name} load_prior_resource with NOOP"
48
48
  end
49
49
 
@@ -54,4 +54,3 @@ class Chef
54
54
  end
55
55
  end
56
56
  end
57
-
@@ -111,7 +111,7 @@ class Machine < Chef::Resource::LWRPBase
111
111
  #
112
112
  # Without this, the first resource's machine options will obliterate the second
113
113
  # resource's machine options, and then unexpected (and undesired) things happen.
114
- def load_prior_resource
114
+ def load_prior_resource(*args)
115
115
  Chef::Log.debug "Overloading #{self.resource_name} load_prior_resource with NOOP"
116
116
  end
117
117
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-04 00:00:00.000000000 Z
11
+ date: 2014-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh