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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92c425219d8dcac369d3bb0953e7d1182d56bcea
|
4
|
+
data.tar.gz: 1cdef5fc1a2dafbd0ae111110cf1501b3b7af664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d87cf770920ca4d3b60bd05ef3d823b32edd2230b9e593a1c406f2d50886c8c21eed5a99838d5f34598b4e58c253a8d8174420b86a4b088ffd09abf0d22ee879
|
7
|
+
data.tar.gz: ee1e8d53d9f3652e43f7fb5cd112bc6b9c439b6a95d6683d578e02306bcddea3ac8a2f5256ec2c00664082c95049cdd6b261bdd790843059262879d75b054133
|
@@ -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
|
26
|
-
|
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.
|
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-
|
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:
|