chef-zero 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -5,7 +5,7 @@ Description
|
|
5
5
|
-----------
|
6
6
|
Chef Zero is a simple, easy-install, in-memory Chef server that can be useful
|
7
7
|
for Chef Client testing and chef-solo-like tasks that require a full Chef
|
8
|
-
|
8
|
+
Server. It IS intended to be simple, Chef 11 compliant, easy to run and fast
|
9
9
|
to start. It is NOT intended to be secure, scalable, performant or persistent.
|
10
10
|
It does NO input validation, authentication or authorization (it will not
|
11
11
|
throw a 400, 401 or 403). It does not save data, and will start up empty each
|
@@ -13,10 +13,10 @@ module ChefZero
|
|
13
13
|
desired_versions = {}
|
14
14
|
run_list = JSON.parse(request.body, :create_additions => false)['run_list']
|
15
15
|
run_list.each do |run_list_entry|
|
16
|
-
if run_list_entry =~ /(.+)(
|
16
|
+
if run_list_entry =~ /(.+)::.+\@(.+)/ || run_list_entry =~ /(.+)\@(.+)/
|
17
17
|
raise RestErrorResponse.new(412, "No such cookbook: #{$1}") if !cookbook_names.include?($1)
|
18
|
-
raise RestErrorResponse.new(412, "No such cookbook version for cookbook #{$1}: #{$
|
19
|
-
desired_versions[$1] = [ $
|
18
|
+
raise RestErrorResponse.new(412, "No such cookbook version for cookbook #{$1}: #{$2}") if !list_data(request, ['cookbooks', $1]).include?($2)
|
19
|
+
desired_versions[$1] = [ $2 ]
|
20
20
|
else
|
21
21
|
desired_cookbook = run_list_entry.split('::')[0]
|
22
22
|
raise RestErrorResponse.new(412, "No such cookbook: #{desired_cookbook}") if !cookbook_names.include?(desired_cookbook)
|
data/lib/chef_zero/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: puma
|
@@ -190,7 +190,8 @@ files:
|
|
190
190
|
- spec/run.rb
|
191
191
|
- spec/support/pedant.rb
|
192
192
|
- spec/support/stickywicket.pem
|
193
|
-
-
|
193
|
+
- !binary |-
|
194
|
+
YmluL2NoZWYtemVybw==
|
194
195
|
homepage: http://www.opscode.com
|
195
196
|
licenses: []
|
196
197
|
post_install_message:
|