chef-cookie_cutter 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a875e0b78842c77a75851e56dcc767effbffc019
|
4
|
+
data.tar.gz: 04ff91c531c749674c543b4709cc741b1c357391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 951125ed7731653b1a4e6d8320d645285282b760d3ba7c83e1c6fb44709afad0d919dc207ca220c2707c965b8b9591be07788139d617b6af4c2165ca78669bb3
|
7
|
+
data.tar.gz: 89b9a32b0ec932a9f6e2402b19e031753537fb9cb599dcd6853599bd0263795216f18607ef6b185bbd4b167cf182bf7e7b779aa1d75d590420315fc4459e2b2f
|
@@ -29,10 +29,11 @@ class Chef
|
|
29
29
|
store_state(:cookie_cutter, :shared_properties, name, block)
|
30
30
|
end
|
31
31
|
|
32
|
-
def include_properties(name)
|
32
|
+
def include_properties(name, *args, **kwargs)
|
33
33
|
fail Errors::SharedPropertiesNotDefined, name unless properties_shared? name
|
34
34
|
block = fetch_state(:cookie_cutter, :shared_properties, name)
|
35
|
-
|
35
|
+
args << kwargs unless kwargs.empty?
|
36
|
+
instance_exec(*args, &block)
|
36
37
|
end
|
37
38
|
end
|
38
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-cookie_cutter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ole Claussen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|