kitchen-nodes 0.6.1 → 0.6.2

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: aa9d77402308d7949a44b23cc269d6517f1929df
4
- data.tar.gz: 0e5b53f311ea1f481fa6186e840dc49d989e62ea
3
+ metadata.gz: 92c425219d8dcac369d3bb0953e7d1182d56bcea
4
+ data.tar.gz: 1cdef5fc1a2dafbd0ae111110cf1501b3b7af664
5
5
  SHA512:
6
- metadata.gz: b456c312d01de81a4588239b693528713b99e1a2de86332e14df053f8c16cc743e13a4b503a21c4774f182a9a0fb983026684222737770f75f5bc268e7fdd89c
7
- data.tar.gz: 2ca3f0fda915d2c9f71091c9053ff93ff300bff985de02a4de60dfb3cb6c035650293438a68c6e4a88901aa5c24265ee4c1adb25f93eac457b8e5f493dc1ed78
6
+ metadata.gz: d87cf770920ca4d3b60bd05ef3d823b32edd2230b9e593a1c406f2d50886c8c21eed5a99838d5f34598b4e58c253a8d8174420b86a4b088ffd09abf0d22ee879
7
+ data.tar.gz: ee1e8d53d9f3652e43f7fb5cd112bc6b9c439b6a95d6683d578e02306bcddea3ac8a2f5256ec2c00664082c95049cdd6b261bdd790843059262879d75b054133
@@ -19,6 +19,6 @@
19
19
  module Kitchen
20
20
  # Version string for Nodes Kitchen driver
21
21
  module Provisioner
22
- NODES_VERSION = '0.6.1'
22
+ NODES_VERSION = '0.6.2'
23
23
  end
24
24
  end
@@ -22,8 +22,13 @@ module Kitchen
22
22
  module Provisioner
23
23
  # fetches roles from kitchen roles directory
24
24
  class RunListExpansionFromKitchen < ::Chef::RunList::RunListExpansion
25
- def fetch_role(name, included_by, role_dir)
26
- role_file = File.join(role_dir, "#{name}.json")
25
+ def initialize(environment, run_list_items, source = nil, role_dir = nil)
26
+ @role_dir = role_dir
27
+ super(environment, run_list_items, source)
28
+ end
29
+
30
+ def fetch_role(name, included_by)
31
+ role_file = File.join(@role_dir, "#{name}.json")
27
32
  Chef::Role.json_create(JSON.parse(File.read(role_file)))
28
33
  rescue Chef::Exceptions::RoleNotFound
29
34
  role_not_found(name, included_by)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-nodes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wrock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-24 00:00:00.000000000 Z
11
+ date: 2015-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ping
@@ -190,4 +190,3 @@ test_files:
190
190
  - test/integration/node1/serverspec/default_spec.rb
191
191
  - test/integration/node2/serverspec/Gemfile
192
192
  - test/integration/node2/serverspec/default_spec.rb
193
- has_rdoc: