ridley 0.7.0.rc4 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ridley.rb +2 -0
- data/lib/ridley/chef.rb +10 -0
- data/lib/ridley/chef/cookbook.rb +254 -0
- data/lib/ridley/chef/cookbook/metadata.rb +552 -0
- data/lib/ridley/chef/cookbook/syntax_check.rb +162 -0
- data/lib/ridley/chef/digester.rb +55 -0
- data/lib/ridley/errors.rb +2 -0
- data/lib/ridley/mixin.rb +3 -0
- data/lib/ridley/mixin/checksum.rb +14 -0
- data/lib/ridley/mixin/shell_out.rb +23 -0
- data/lib/ridley/resources/cookbook_resource.rb +44 -4
- data/lib/ridley/version.rb +1 -1
- data/ridley.gemspec +3 -1
- data/spec/fixtures/example_cookbook/README.md +11 -0
- data/spec/fixtures/example_cookbook/attributes/default.rb +6 -0
- data/spec/fixtures/example_cookbook/definitions/bad_def.rb +6 -0
- data/spec/fixtures/example_cookbook/files/default/file.h +2 -0
- data/spec/fixtures/example_cookbook/files/ubuntu/file.h +2 -0
- data/spec/fixtures/example_cookbook/libraries/my_lib.rb +6 -0
- data/spec/fixtures/example_cookbook/metadata.rb +7 -0
- data/spec/fixtures/example_cookbook/providers/defprovider.rb +6 -0
- data/spec/fixtures/example_cookbook/recipes/default.rb +6 -0
- data/spec/fixtures/example_cookbook/resources/defresource.rb +6 -0
- data/spec/fixtures/example_cookbook/templates/default/temp.txt.erb +1 -0
- data/spec/support/filepath_matchers.rb +19 -0
- data/spec/unit/ridley/chef/cookbook_spec.rb +412 -0
- data/spec/unit/ridley/resource_spec.rb +1 -1
- data/spec/unit/ridley/resources/cookbook_resource_spec.rb +1 -1
- metadata +76 -7
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jamie Winsor
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 0.6.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.6.0
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: mixlib-log
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,6 +75,38 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: 1.3.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: mixlib-shellout
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.1.0
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.1.0
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: mixlib-config
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.1.0
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.1.0
|
78
110
|
- !ruby/object:Gem::Dependency
|
79
111
|
name: mixlib-authentication
|
80
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -239,6 +271,11 @@ files:
|
|
239
271
|
- lib/ridley/bootstrapper.rb
|
240
272
|
- lib/ridley/bootstrapper/context.rb
|
241
273
|
- lib/ridley/chain_link.rb
|
274
|
+
- lib/ridley/chef.rb
|
275
|
+
- lib/ridley/chef/cookbook.rb
|
276
|
+
- lib/ridley/chef/cookbook/metadata.rb
|
277
|
+
- lib/ridley/chef/cookbook/syntax_check.rb
|
278
|
+
- lib/ridley/chef/digester.rb
|
242
279
|
- lib/ridley/client.rb
|
243
280
|
- lib/ridley/connection.rb
|
244
281
|
- lib/ridley/errors.rb
|
@@ -248,6 +285,9 @@ files:
|
|
248
285
|
- lib/ridley/middleware/chef_auth.rb
|
249
286
|
- lib/ridley/middleware/chef_response.rb
|
250
287
|
- lib/ridley/middleware/parse_json.rb
|
288
|
+
- lib/ridley/mixin.rb
|
289
|
+
- lib/ridley/mixin/checksum.rb
|
290
|
+
- lib/ridley/mixin/shell_out.rb
|
251
291
|
- lib/ridley/resource.rb
|
252
292
|
- lib/ridley/resources.rb
|
253
293
|
- lib/ridley/resources/client_resource.rb
|
@@ -277,16 +317,29 @@ files:
|
|
277
317
|
- spec/acceptance/sandbox_resource_spec.rb
|
278
318
|
- spec/acceptance/search_resource_spec.rb
|
279
319
|
- spec/fixtures/encrypted_data_bag_secret
|
320
|
+
- spec/fixtures/example_cookbook/README.md
|
321
|
+
- spec/fixtures/example_cookbook/attributes/default.rb
|
322
|
+
- spec/fixtures/example_cookbook/definitions/bad_def.rb
|
323
|
+
- spec/fixtures/example_cookbook/files/default/file.h
|
324
|
+
- spec/fixtures/example_cookbook/files/ubuntu/file.h
|
325
|
+
- spec/fixtures/example_cookbook/libraries/my_lib.rb
|
326
|
+
- spec/fixtures/example_cookbook/metadata.rb
|
327
|
+
- spec/fixtures/example_cookbook/providers/defprovider.rb
|
328
|
+
- spec/fixtures/example_cookbook/recipes/default.rb
|
329
|
+
- spec/fixtures/example_cookbook/resources/defresource.rb
|
330
|
+
- spec/fixtures/example_cookbook/templates/default/temp.txt.erb
|
280
331
|
- spec/fixtures/recipe_one.rb
|
281
332
|
- spec/fixtures/recipe_two.rb
|
282
333
|
- spec/fixtures/reset.pem
|
283
334
|
- spec/spec_helper.rb
|
284
335
|
- spec/support/actor_mocking.rb
|
285
336
|
- spec/support/each_matcher.rb
|
337
|
+
- spec/support/filepath_matchers.rb
|
286
338
|
- spec/support/shared_examples/ridley_resource.rb
|
287
339
|
- spec/support/spec_helpers.rb
|
288
340
|
- spec/unit/ridley/bootstrapper/context_spec.rb
|
289
341
|
- spec/unit/ridley/bootstrapper_spec.rb
|
342
|
+
- spec/unit/ridley/chef/cookbook_spec.rb
|
290
343
|
- spec/unit/ridley/client_spec.rb
|
291
344
|
- spec/unit/ridley/connection_spec.rb
|
292
345
|
- spec/unit/ridley/errors_spec.rb
|
@@ -324,9 +377,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
324
377
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
325
378
|
none: false
|
326
379
|
requirements:
|
327
|
-
- - ! '
|
380
|
+
- - ! '>='
|
328
381
|
- !ruby/object:Gem::Version
|
329
|
-
version:
|
382
|
+
version: '0'
|
383
|
+
segments:
|
384
|
+
- 0
|
385
|
+
hash: 109610229622215450
|
330
386
|
requirements: []
|
331
387
|
rubyforge_project:
|
332
388
|
rubygems_version: 1.8.24
|
@@ -344,16 +400,29 @@ test_files:
|
|
344
400
|
- spec/acceptance/sandbox_resource_spec.rb
|
345
401
|
- spec/acceptance/search_resource_spec.rb
|
346
402
|
- spec/fixtures/encrypted_data_bag_secret
|
403
|
+
- spec/fixtures/example_cookbook/README.md
|
404
|
+
- spec/fixtures/example_cookbook/attributes/default.rb
|
405
|
+
- spec/fixtures/example_cookbook/definitions/bad_def.rb
|
406
|
+
- spec/fixtures/example_cookbook/files/default/file.h
|
407
|
+
- spec/fixtures/example_cookbook/files/ubuntu/file.h
|
408
|
+
- spec/fixtures/example_cookbook/libraries/my_lib.rb
|
409
|
+
- spec/fixtures/example_cookbook/metadata.rb
|
410
|
+
- spec/fixtures/example_cookbook/providers/defprovider.rb
|
411
|
+
- spec/fixtures/example_cookbook/recipes/default.rb
|
412
|
+
- spec/fixtures/example_cookbook/resources/defresource.rb
|
413
|
+
- spec/fixtures/example_cookbook/templates/default/temp.txt.erb
|
347
414
|
- spec/fixtures/recipe_one.rb
|
348
415
|
- spec/fixtures/recipe_two.rb
|
349
416
|
- spec/fixtures/reset.pem
|
350
417
|
- spec/spec_helper.rb
|
351
418
|
- spec/support/actor_mocking.rb
|
352
419
|
- spec/support/each_matcher.rb
|
420
|
+
- spec/support/filepath_matchers.rb
|
353
421
|
- spec/support/shared_examples/ridley_resource.rb
|
354
422
|
- spec/support/spec_helpers.rb
|
355
423
|
- spec/unit/ridley/bootstrapper/context_spec.rb
|
356
424
|
- spec/unit/ridley/bootstrapper_spec.rb
|
425
|
+
- spec/unit/ridley/chef/cookbook_spec.rb
|
357
426
|
- spec/unit/ridley/client_spec.rb
|
358
427
|
- spec/unit/ridley/connection_spec.rb
|
359
428
|
- spec/unit/ridley/errors_spec.rb
|