chef-dk 0.3.5 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +4 -4
- data/README.md +4 -4
- data/lib/chef-dk/builtin_commands.rb +4 -0
- data/lib/chef-dk/chef_runner.rb +7 -1
- data/lib/chef-dk/command/exec.rb +9 -0
- data/lib/chef-dk/command/export.rb +132 -0
- data/lib/chef-dk/command/generator_commands.rb +1 -1
- data/lib/chef-dk/command/generator_commands/app.rb +8 -0
- data/lib/chef-dk/command/generator_commands/base.rb +46 -4
- data/lib/chef-dk/command/generator_commands/cookbook.rb +8 -0
- data/lib/chef-dk/command/generator_commands/cookbook_code_file.rb +1 -0
- data/lib/chef-dk/command/push.rb +3 -6
- data/lib/chef-dk/command/shell_init.rb +28 -5
- data/lib/chef-dk/command/update.rb +106 -0
- data/lib/chef-dk/command/verify.rb +72 -0
- data/lib/chef-dk/component_test.rb +12 -1
- data/lib/chef-dk/configurable.rb +52 -0
- data/lib/chef-dk/cookbook_metadata.rb +10 -1
- data/lib/chef-dk/cookbook_profiler/git.rb +1 -1
- data/lib/chef-dk/exceptions.rb +17 -2
- data/lib/chef-dk/helpers.rb +2 -2
- data/lib/chef-dk/policyfile/community_cookbook_source.rb +1 -1
- data/lib/chef-dk/policyfile/dsl.rb +7 -0
- data/lib/chef-dk/policyfile/uploader.rb +25 -4
- data/lib/chef-dk/policyfile_compiler.rb +21 -1
- data/lib/chef-dk/policyfile_lock.rb +5 -0
- data/lib/chef-dk/policyfile_services/export_repo.rb +194 -0
- data/lib/chef-dk/policyfile_services/install.rb +8 -2
- data/lib/chef-dk/policyfile_services/push.rb +4 -1
- data/lib/chef-dk/service_exceptions.rb +6 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/Berksfile +1 -1
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/README.md +1 -1
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/cookbooks/README.md +1 -1
- data/lib/chef-dk/skeletons/code_generator/files/default/repo/environments/README.md +2 -2
- data/lib/chef-dk/skeletons/code_generator/files/default/serverspec_spec_helper.rb +3 -0
- data/lib/chef-dk/skeletons/code_generator/files/default/spec_helper.rb +1 -7
- data/lib/chef-dk/skeletons/code_generator/metadata.rb +1 -1
- data/lib/chef-dk/skeletons/code_generator/recipes/app.rb +31 -1
- data/lib/chef-dk/skeletons/code_generator/recipes/cookbook.rb +32 -2
- data/lib/chef-dk/skeletons/code_generator/recipes/recipe.rb +18 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/recipe.rb.erb +5 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb +23 -0
- data/lib/chef-dk/skeletons/code_generator/templates/default/serverspec_default_spec.rb.erb +12 -0
- data/lib/chef-dk/version.rb +1 -1
- data/lib/kitchen/provisioner/policyfile_zero.rb +149 -0
- data/spec/shared/a_file_generator.rb +1 -0
- data/spec/shared/command_with_ui_object.rb +11 -0
- data/spec/shared/custom_generator_cookbook.rb +117 -0
- data/spec/unit/chef_runner_spec.rb +26 -0
- data/spec/unit/command/exec_spec.rb +46 -5
- data/spec/unit/command/export_spec.rb +176 -0
- data/spec/unit/command/generator_commands/app_spec.rb +38 -0
- data/spec/unit/command/generator_commands/cookbook_spec.rb +37 -28
- data/spec/unit/command/generator_commands/recipe_spec.rb +4 -2
- data/spec/unit/command/install_spec.rb +3 -6
- data/spec/unit/command/push_spec.rb +3 -6
- data/spec/unit/command/shell_init_spec.rb +77 -49
- data/spec/unit/command/update_spec.rb +155 -0
- data/spec/unit/command/verify_spec.rb +22 -7
- data/spec/unit/cookbook_metadata_spec.rb +44 -8
- data/spec/unit/cookbook_profiler/git_spec.rb +12 -0
- data/spec/unit/fixtures/cookbook_cache/baz-f59ee7a5bca6a4e606b67f7f856b768d847c39bb/Berksfile +1 -1
- data/spec/unit/fixtures/cookbook_cache/dep_of_bar-1.2.3/Berksfile +1 -1
- data/spec/unit/fixtures/cookbook_cache/foo-1.0.0/Berksfile +1 -1
- data/spec/unit/fixtures/cookbooks_api/small_universe.json +667 -667
- data/spec/unit/fixtures/cookbooks_api/universe.json +1 -1
- data/spec/unit/fixtures/cookbooks_api/update_fixtures.rb +1 -1
- data/spec/unit/fixtures/example_cookbook/Berksfile +1 -1
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/.gitignore +17 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/.kitchen.yml +16 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/Berksfile +3 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/README.md +4 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/chefignore +96 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/metadata.json +5 -0
- data/spec/unit/fixtures/example_cookbook_metadata_json_only/recipes/default.rb +8 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/.gitignore +17 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/.kitchen.yml +16 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/Berksfile +3 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/README.md +4 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/chefignore +96 -0
- data/spec/unit/fixtures/example_cookbook_no_metadata/recipes/default.rb +8 -0
- data/spec/unit/fixtures/local_path_cookbooks/local-cookbook/Berksfile +1 -1
- data/spec/unit/policyfile/community_cookbook_source_spec.rb +2 -2
- data/spec/unit/policyfile/cookbook_location_specification_spec.rb +3 -3
- data/spec/unit/policyfile/uploader_spec.rb +61 -25
- data/spec/unit/policyfile_demands_spec.rb +47 -0
- data/spec/unit/policyfile_evaluation_spec.rb +1 -1
- data/spec/unit/policyfile_lock_build_spec.rb +60 -3
- data/spec/unit/policyfile_services/export_repo_spec.rb +321 -0
- data/spec/unit/policyfile_services/install_spec.rb +20 -1
- data/spec/unit/policyfile_services/push_spec.rb +36 -9
- metadata +53 -38
- data/lib/chef-dk/skeletons/code_generator/files/default/converge_spec.rb +0 -9
- data/lib/chef-dk/skeletons/code_generator/templates/default/default_recipe.rb.erb +0 -5
@@ -52,9 +52,11 @@ cookbook 'local-cookbook', path: '#{local_cookbooks_root}/local-cookbook'
|
|
52
52
|
E
|
53
53
|
end
|
54
54
|
|
55
|
+
let(:overwrite) { false }
|
56
|
+
|
55
57
|
let(:ui) { TestHelpers::TestUI.new }
|
56
58
|
|
57
|
-
let(:install_service) { described_class.new(policyfile: policyfile_rb_name, ui: ui, root_dir: working_dir) }
|
59
|
+
let(:install_service) { described_class.new(policyfile: policyfile_rb_name, ui: ui, root_dir: working_dir, overwrite: overwrite) }
|
58
60
|
|
59
61
|
let(:storage_config) do
|
60
62
|
ChefDK::Policyfile::StorageConfig.new( cache_path: nil, relative_paths_root: local_cookbooks_root )
|
@@ -111,6 +113,23 @@ E
|
|
111
113
|
|
112
114
|
end
|
113
115
|
|
116
|
+
context "and a lockfile exists and `overwrite` is specified" do
|
117
|
+
|
118
|
+
let(:overwrite) { true }
|
119
|
+
|
120
|
+
before do
|
121
|
+
File.binwrite(policyfile_lock_path, "This is the old lockfile content")
|
122
|
+
end
|
123
|
+
|
124
|
+
it "solves the Policyfile demands, installs cookbooks, emits a lockfile" do
|
125
|
+
install_service.run
|
126
|
+
generated_lock = result_policyfile_lock
|
127
|
+
expect(generated_lock.name).to eq('install-example')
|
128
|
+
expect(generated_lock.cookbook_locks).to have_key("local-cookbook")
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
132
|
+
|
114
133
|
context "and a lockfile exists" do
|
115
134
|
|
116
135
|
before do
|
@@ -44,8 +44,14 @@ describe ChefDK::PolicyfileServices::Push do
|
|
44
44
|
File.join(fixtures_path, "local_path_cookbooks")
|
45
45
|
end
|
46
46
|
|
47
|
+
let(:policy_document_native_api) { false }
|
48
|
+
|
47
49
|
let(:config) do
|
48
|
-
double("Chef::Config",
|
50
|
+
double("Chef::Config",
|
51
|
+
chef_server_url: "https://localhost:10443",
|
52
|
+
client_key: "/path/to/client/key.pem",
|
53
|
+
node_name: "deuce",
|
54
|
+
policy_document_native_api: policy_document_native_api)
|
49
55
|
end
|
50
56
|
|
51
57
|
let(:ui) { TestHelpers::TestUI.new }
|
@@ -166,21 +172,42 @@ E
|
|
166
172
|
expect(push_service).to receive(:http_client).and_return(http_client)
|
167
173
|
|
168
174
|
expect(ChefDK::Policyfile::Uploader).to receive(:new).
|
169
|
-
with(push_service.policyfile_lock, policy_group, http_client: http_client, ui: ui).
|
175
|
+
with(push_service.policyfile_lock, policy_group, http_client: http_client, ui: ui, policy_document_native_api: policy_document_native_api).
|
170
176
|
and_return(uploader)
|
171
177
|
end
|
172
178
|
|
179
|
+
context "when the policy document native API is disabled" do
|
180
|
+
|
181
|
+
it "configures a Policyfile Uploader" do
|
182
|
+
push_service.uploader
|
183
|
+
end
|
184
|
+
|
185
|
+
it "validates the lockfile, writes any updates, and uploads the cookbooks" do
|
186
|
+
allow(File).to receive(:open).and_call_original
|
187
|
+
expect(File).to receive(:open).with(policyfile_lock_path, "wb+").and_yield(updated_lockfile_io)
|
188
|
+
expect(uploader).to receive(:upload)
|
189
|
+
|
190
|
+
push_service.run
|
191
|
+
end
|
173
192
|
|
174
|
-
it "configures a Policyfile Uploader" do
|
175
|
-
push_service.uploader
|
176
193
|
end
|
177
194
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
195
|
+
context "when the policy document native API is enabled" do
|
196
|
+
|
197
|
+
let(:policy_document_native_api) { true }
|
198
|
+
|
199
|
+
it "configures a Policyfile Uploader with the policy document native API option" do
|
200
|
+
push_service.uploader
|
201
|
+
end
|
202
|
+
|
203
|
+
it "validates the lockfile, writes any updates, and uploads the cookbooks" do
|
204
|
+
allow(File).to receive(:open).and_call_original
|
205
|
+
expect(File).to receive(:open).with(policyfile_lock_path, "wb+").and_yield(updated_lockfile_io)
|
206
|
+
expect(uploader).to receive(:upload)
|
207
|
+
|
208
|
+
push_service.run
|
209
|
+
end
|
182
210
|
|
183
|
-
push_service.run
|
184
211
|
end
|
185
212
|
|
186
213
|
describe "when an error occurs in upload" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-dk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel DeLeo
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mixlib-cli
|
@@ -66,14 +66,14 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 12.0
|
69
|
+
version: '12.0'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 12.0
|
76
|
+
version: '12.0'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: solve
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,9 +146,9 @@ dependencies:
|
|
146
146
|
version: '3.0'
|
147
147
|
description: A streamlined development and deployment workflow for Chef platform.
|
148
148
|
email:
|
149
|
-
- dan@
|
150
|
-
- lamont@
|
151
|
-
- serdar@
|
149
|
+
- dan@chef.io
|
150
|
+
- lamont@chef.io
|
151
|
+
- serdar@chef.io
|
152
152
|
executables:
|
153
153
|
- chef
|
154
154
|
extensions: []
|
@@ -166,6 +166,7 @@ files:
|
|
166
166
|
- lib/chef-dk/cli.rb
|
167
167
|
- lib/chef-dk/command/base.rb
|
168
168
|
- lib/chef-dk/command/exec.rb
|
169
|
+
- lib/chef-dk/command/export.rb
|
169
170
|
- lib/chef-dk/command/gem.rb
|
170
171
|
- lib/chef-dk/command/generate.rb
|
171
172
|
- lib/chef-dk/command/generator_commands.rb
|
@@ -183,9 +184,11 @@ files:
|
|
183
184
|
- lib/chef-dk/command/install.rb
|
184
185
|
- lib/chef-dk/command/push.rb
|
185
186
|
- lib/chef-dk/command/shell_init.rb
|
187
|
+
- lib/chef-dk/command/update.rb
|
186
188
|
- lib/chef-dk/command/verify.rb
|
187
189
|
- lib/chef-dk/commands_map.rb
|
188
190
|
- lib/chef-dk/component_test.rb
|
191
|
+
- lib/chef-dk/configurable.rb
|
189
192
|
- lib/chef-dk/cookbook_metadata.rb
|
190
193
|
- lib/chef-dk/cookbook_omnifetch.rb
|
191
194
|
- lib/chef-dk/cookbook_profiler/git.rb
|
@@ -210,6 +213,7 @@ files:
|
|
210
213
|
- lib/chef-dk/policyfile/uploader.rb
|
211
214
|
- lib/chef-dk/policyfile_compiler.rb
|
212
215
|
- lib/chef-dk/policyfile_lock.rb
|
216
|
+
- lib/chef-dk/policyfile_services/export_repo.rb
|
213
217
|
- lib/chef-dk/policyfile_services/install.rb
|
214
218
|
- lib/chef-dk/policyfile_services/push.rb
|
215
219
|
- lib/chef-dk/service_exception_inspectors.rb
|
@@ -219,7 +223,6 @@ files:
|
|
219
223
|
- lib/chef-dk/shell_out.rb
|
220
224
|
- lib/chef-dk/skeletons/code_generator/files/default/Berksfile
|
221
225
|
- lib/chef-dk/skeletons/code_generator/files/default/chefignore
|
222
|
-
- lib/chef-dk/skeletons/code_generator/files/default/converge_spec.rb
|
223
226
|
- lib/chef-dk/skeletons/code_generator/files/default/gitignore
|
224
227
|
- lib/chef-dk/skeletons/code_generator/files/default/repo/README.md
|
225
228
|
- lib/chef-dk/skeletons/code_generator/files/default/repo/Rakefile
|
@@ -229,6 +232,7 @@ files:
|
|
229
232
|
- lib/chef-dk/skeletons/code_generator/files/default/repo/data_bags/README.md
|
230
233
|
- lib/chef-dk/skeletons/code_generator/files/default/repo/environments/README.md
|
231
234
|
- lib/chef-dk/skeletons/code_generator/files/default/repo/roles/README.md
|
235
|
+
- lib/chef-dk/skeletons/code_generator/files/default/serverspec_spec_helper.rb
|
232
236
|
- lib/chef-dk/skeletons/code_generator/files/default/spec_helper.rb
|
233
237
|
- lib/chef-dk/skeletons/code_generator/metadata.rb
|
234
238
|
- lib/chef-dk/skeletons/code_generator/recipes/app.rb
|
@@ -249,19 +253,23 @@ files:
|
|
249
253
|
- lib/chef-dk/skeletons/code_generator/templates/default/README.md.erb
|
250
254
|
- lib/chef-dk/skeletons/code_generator/templates/default/attribute.rb.erb
|
251
255
|
- lib/chef-dk/skeletons/code_generator/templates/default/cookbook_file.erb
|
252
|
-
- lib/chef-dk/skeletons/code_generator/templates/default/default_recipe.rb.erb
|
253
256
|
- lib/chef-dk/skeletons/code_generator/templates/default/kitchen.yml.erb
|
254
257
|
- lib/chef-dk/skeletons/code_generator/templates/default/metadata.rb.erb
|
255
258
|
- lib/chef-dk/skeletons/code_generator/templates/default/provider.rb.erb
|
256
259
|
- lib/chef-dk/skeletons/code_generator/templates/default/recipe.rb.erb
|
260
|
+
- lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
|
257
261
|
- lib/chef-dk/skeletons/code_generator/templates/default/repo/config/rake.rb.erb
|
258
262
|
- lib/chef-dk/skeletons/code_generator/templates/default/repo/gitignore.erb
|
259
263
|
- lib/chef-dk/skeletons/code_generator/templates/default/resource.rb.erb
|
264
|
+
- lib/chef-dk/skeletons/code_generator/templates/default/serverspec_default_spec.rb.erb
|
260
265
|
- lib/chef-dk/skeletons/code_generator/templates/default/template.erb
|
261
266
|
- lib/chef-dk/ui.rb
|
262
267
|
- lib/chef-dk/version.rb
|
268
|
+
- lib/kitchen/provisioner/policyfile_zero.rb
|
263
269
|
- spec/shared/a_file_generator.rb
|
264
270
|
- spec/shared/a_generated_file.rb
|
271
|
+
- spec/shared/command_with_ui_object.rb
|
272
|
+
- spec/shared/custom_generator_cookbook.rb
|
265
273
|
- spec/shared/fixture_cookbook_checksums.rb
|
266
274
|
- spec/shared/setup_git_cookbooks.rb
|
267
275
|
- spec/spec_helper.rb
|
@@ -270,6 +278,7 @@ files:
|
|
270
278
|
- spec/unit/cli_spec.rb
|
271
279
|
- spec/unit/command/base_spec.rb
|
272
280
|
- spec/unit/command/exec_spec.rb
|
281
|
+
- spec/unit/command/export_spec.rb
|
273
282
|
- spec/unit/command/generate_spec.rb
|
274
283
|
- spec/unit/command/generator_commands/app_spec.rb
|
275
284
|
- spec/unit/command/generator_commands/attribute_spec.rb
|
@@ -283,6 +292,7 @@ files:
|
|
283
292
|
- spec/unit/command/install_spec.rb
|
284
293
|
- spec/unit/command/push_spec.rb
|
285
294
|
- spec/unit/command/shell_init_spec.rb
|
295
|
+
- spec/unit/command/update_spec.rb
|
286
296
|
- spec/unit/command/verify_spec.rb
|
287
297
|
- spec/unit/commands_map_spec.rb
|
288
298
|
- spec/unit/component_test_spec.rb
|
@@ -332,19 +342,6 @@ files:
|
|
332
342
|
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/test-kitchen/verify_me
|
333
343
|
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/bin/.keep
|
334
344
|
- spec/unit/fixtures/example_app/Policyfile.rb
|
335
|
-
- spec/unit/fixtures/example_cookbook/.git/HEAD
|
336
|
-
- spec/unit/fixtures/example_cookbook/.git/config
|
337
|
-
- spec/unit/fixtures/example_cookbook/.git/description
|
338
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/applypatch-msg.sample
|
339
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/commit-msg.sample
|
340
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/post-update.sample
|
341
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-applypatch.sample
|
342
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-commit.sample
|
343
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-push.sample
|
344
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-rebase.sample
|
345
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/prepare-commit-msg.sample
|
346
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/update.sample
|
347
|
-
- spec/unit/fixtures/example_cookbook/.git/info/exclude
|
348
345
|
- spec/unit/fixtures/example_cookbook/.gitignore
|
349
346
|
- spec/unit/fixtures/example_cookbook/.kitchen.yml
|
350
347
|
- spec/unit/fixtures/example_cookbook/Berksfile
|
@@ -352,6 +349,19 @@ files:
|
|
352
349
|
- spec/unit/fixtures/example_cookbook/chefignore
|
353
350
|
- spec/unit/fixtures/example_cookbook/metadata.rb
|
354
351
|
- spec/unit/fixtures/example_cookbook/recipes/default.rb
|
352
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.gitignore
|
353
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.kitchen.yml
|
354
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/Berksfile
|
355
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/README.md
|
356
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/chefignore
|
357
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/metadata.json
|
358
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/recipes/default.rb
|
359
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.gitignore
|
360
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.kitchen.yml
|
361
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/Berksfile
|
362
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/README.md
|
363
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/chefignore
|
364
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/recipes/default.rb
|
355
365
|
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/README.md
|
356
366
|
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/chefignore
|
357
367
|
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/metadata.rb
|
@@ -385,12 +395,13 @@ files:
|
|
385
395
|
- spec/unit/policyfile_lock_install_spec.rb
|
386
396
|
- spec/unit/policyfile_lock_serialization_spec.rb
|
387
397
|
- spec/unit/policyfile_lock_validation_spec.rb
|
398
|
+
- spec/unit/policyfile_services/export_repo_spec.rb
|
388
399
|
- spec/unit/policyfile_services/install_spec.rb
|
389
400
|
- spec/unit/policyfile_services/push_spec.rb
|
390
401
|
- spec/unit/service_exception_inspectors/base_spec.rb
|
391
402
|
- spec/unit/service_exception_inspectors/http_spec.rb
|
392
403
|
- spec/unit/shell_out_spec.rb
|
393
|
-
homepage:
|
404
|
+
homepage: https://www.chef.io/
|
394
405
|
licenses: []
|
395
406
|
metadata: {}
|
396
407
|
post_install_message:
|
@@ -409,13 +420,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
409
420
|
version: '0'
|
410
421
|
requirements: []
|
411
422
|
rubyforge_project:
|
412
|
-
rubygems_version: 2.
|
423
|
+
rubygems_version: 2.4.2
|
413
424
|
signing_key:
|
414
425
|
specification_version: 4
|
415
426
|
summary: A streamlined development and deployment workflow for Chef platform.
|
416
427
|
test_files:
|
417
428
|
- spec/shared/a_file_generator.rb
|
418
429
|
- spec/shared/a_generated_file.rb
|
430
|
+
- spec/shared/command_with_ui_object.rb
|
431
|
+
- spec/shared/custom_generator_cookbook.rb
|
419
432
|
- spec/shared/fixture_cookbook_checksums.rb
|
420
433
|
- spec/shared/setup_git_cookbooks.rb
|
421
434
|
- spec/spec_helper.rb
|
@@ -424,6 +437,7 @@ test_files:
|
|
424
437
|
- spec/unit/cli_spec.rb
|
425
438
|
- spec/unit/command/base_spec.rb
|
426
439
|
- spec/unit/command/exec_spec.rb
|
440
|
+
- spec/unit/command/export_spec.rb
|
427
441
|
- spec/unit/command/generate_spec.rb
|
428
442
|
- spec/unit/command/generator_commands/app_spec.rb
|
429
443
|
- spec/unit/command/generator_commands/attribute_spec.rb
|
@@ -437,6 +451,7 @@ test_files:
|
|
437
451
|
- spec/unit/command/install_spec.rb
|
438
452
|
- spec/unit/command/push_spec.rb
|
439
453
|
- spec/unit/command/shell_init_spec.rb
|
454
|
+
- spec/unit/command/update_spec.rb
|
440
455
|
- spec/unit/command/verify_spec.rb
|
441
456
|
- spec/unit/commands_map_spec.rb
|
442
457
|
- spec/unit/component_test_spec.rb
|
@@ -486,19 +501,6 @@ test_files:
|
|
486
501
|
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/apps/test-kitchen/verify_me
|
487
502
|
- spec/unit/fixtures/eg_omnibus_dir/valid/embedded/bin/.keep
|
488
503
|
- spec/unit/fixtures/example_app/Policyfile.rb
|
489
|
-
- spec/unit/fixtures/example_cookbook/.git/HEAD
|
490
|
-
- spec/unit/fixtures/example_cookbook/.git/config
|
491
|
-
- spec/unit/fixtures/example_cookbook/.git/description
|
492
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/applypatch-msg.sample
|
493
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/commit-msg.sample
|
494
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/post-update.sample
|
495
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-applypatch.sample
|
496
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-commit.sample
|
497
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-push.sample
|
498
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/pre-rebase.sample
|
499
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/prepare-commit-msg.sample
|
500
|
-
- spec/unit/fixtures/example_cookbook/.git/hooks/update.sample
|
501
|
-
- spec/unit/fixtures/example_cookbook/.git/info/exclude
|
502
504
|
- spec/unit/fixtures/example_cookbook/.gitignore
|
503
505
|
- spec/unit/fixtures/example_cookbook/.kitchen.yml
|
504
506
|
- spec/unit/fixtures/example_cookbook/Berksfile
|
@@ -506,6 +508,19 @@ test_files:
|
|
506
508
|
- spec/unit/fixtures/example_cookbook/chefignore
|
507
509
|
- spec/unit/fixtures/example_cookbook/metadata.rb
|
508
510
|
- spec/unit/fixtures/example_cookbook/recipes/default.rb
|
511
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.gitignore
|
512
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/.kitchen.yml
|
513
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/Berksfile
|
514
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/README.md
|
515
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/chefignore
|
516
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/metadata.json
|
517
|
+
- spec/unit/fixtures/example_cookbook_metadata_json_only/recipes/default.rb
|
518
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.gitignore
|
519
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/.kitchen.yml
|
520
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/Berksfile
|
521
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/README.md
|
522
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/chefignore
|
523
|
+
- spec/unit/fixtures/example_cookbook_no_metadata/recipes/default.rb
|
509
524
|
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/README.md
|
510
525
|
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/chefignore
|
511
526
|
- spec/unit/fixtures/local_path_cookbooks/another-local-cookbook/metadata.rb
|
@@ -539,9 +554,9 @@ test_files:
|
|
539
554
|
- spec/unit/policyfile_lock_install_spec.rb
|
540
555
|
- spec/unit/policyfile_lock_serialization_spec.rb
|
541
556
|
- spec/unit/policyfile_lock_validation_spec.rb
|
557
|
+
- spec/unit/policyfile_services/export_repo_spec.rb
|
542
558
|
- spec/unit/policyfile_services/install_spec.rb
|
543
559
|
- spec/unit/policyfile_services/push_spec.rb
|
544
560
|
- spec/unit/service_exception_inspectors/base_spec.rb
|
545
561
|
- spec/unit/service_exception_inspectors/http_spec.rb
|
546
562
|
- spec/unit/shell_out_spec.rb
|
547
|
-
has_rdoc:
|