bocuse 0.2.1 → 0.2.2
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.
- data/lib/bocuse/configuration.rb +1 -1
- data/lib/bocuse/unit.rb +1 -1
- data/spec/integration/cook_spec.rb +11 -0
- data/spec/integration/templates_spec.rb +2 -1
- metadata +14 -13
data/lib/bocuse/configuration.rb
CHANGED
data/lib/bocuse/unit.rb
CHANGED
@@ -3,12 +3,13 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe 'Templates' do
|
6
|
+
let(:context) { flexmock('context') }
|
6
7
|
let(:project) { Bocuse::Project.new(fixture('complex')) }
|
7
8
|
|
8
9
|
describe 'loading' do
|
9
10
|
it 'works' do
|
10
11
|
config = Bocuse::Configuration.new
|
11
|
-
project.lookup_template(:users).call(config)
|
12
|
+
project.lookup_template(:users).call(config, context)
|
12
13
|
|
13
14
|
config.to_h.should == {
|
14
15
|
:user => "root",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bocuse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-11-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|
@@ -98,17 +98,17 @@ dependencies:
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
99
99
|
none: false
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.0
|
103
|
+
version: '1.0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ~>
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 1.0
|
111
|
+
version: '1.0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: thor
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,17 +130,17 @@ dependencies:
|
|
130
130
|
requirement: !ruby/object:Gem::Requirement
|
131
131
|
none: false
|
132
132
|
requirements:
|
133
|
-
- -
|
133
|
+
- - ~>
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: 3.1
|
135
|
+
version: '3.1'
|
136
136
|
type: :runtime
|
137
137
|
prerelease: false
|
138
138
|
version_requirements: !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
140
140
|
requirements:
|
141
|
-
- -
|
141
|
+
- - ~>
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: 3.1
|
143
|
+
version: '3.1'
|
144
144
|
- !ruby/object:Gem::Dependency
|
145
145
|
name: hashie
|
146
146
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +148,7 @@ dependencies:
|
|
148
148
|
requirements:
|
149
149
|
- - ~>
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.2
|
151
|
+
version: '1.2'
|
152
152
|
type: :runtime
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -156,7 +156,7 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.2
|
159
|
+
version: '1.2'
|
160
160
|
description: ! " bocuse teaches chef-solo a few tricks. A strict front-end to chef-solo,
|
161
161
|
\n it reads a configuration syntax that is under source control and \n generates
|
162
162
|
JSON for chef-solo.\n\n This library puts the full power of Ruby at your fingertips
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- lib/bocuse.rb
|
183
183
|
- spec/integration/cli_spec.rb
|
184
184
|
- spec/integration/complex_spec.rb
|
185
|
+
- spec/integration/cook_spec.rb
|
185
186
|
- spec/integration/environment_spec.rb
|
186
187
|
- spec/integration/helpers_spec.rb
|
187
188
|
- spec/integration/node_finding_spec.rb
|
@@ -219,6 +220,7 @@ summary: A front-end language to chef-solo.
|
|
219
220
|
test_files:
|
220
221
|
- spec/integration/cli_spec.rb
|
221
222
|
- spec/integration/complex_spec.rb
|
223
|
+
- spec/integration/cook_spec.rb
|
222
224
|
- spec/integration/environment_spec.rb
|
223
225
|
- spec/integration/helpers_spec.rb
|
224
226
|
- spec/integration/node_finding_spec.rb
|
@@ -228,4 +230,3 @@ test_files:
|
|
228
230
|
- spec/lib/bocuse/project_spec.rb
|
229
231
|
- spec/lib/bocuse/unit_spec.rb
|
230
232
|
- spec/lib/bocuse/value_spec.rb
|
231
|
-
has_rdoc:
|