chef 0.9.0.a6 → 0.9.0.a8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of chef might be problematic. Click here for more details.
- data/lib/chef/cookbook_loader.rb +1 -1
- data/lib/chef/knife/cookbook_upload.rb +7 -2
- data/lib/chef/version.rb +1 -1
- metadata +28 -2
data/lib/chef/cookbook_loader.rb
CHANGED
@@ -106,11 +106,12 @@ class Chef
|
|
106
106
|
checksum_files = build_dir_cookbook.checksums
|
107
107
|
checksums = checksum_files.inject({}){|memo,elt| memo[elt.first]=nil ; memo}
|
108
108
|
new_sandbox = catch_auth_exceptions{ rest.post_rest("/sandboxes", { :checksums => checksums }) }
|
109
|
-
|
109
|
+
|
110
|
+
Chef::Log.info("Uploading files")
|
110
111
|
# upload the new checksums and commit the sandbox
|
111
112
|
new_sandbox['checksums'].each do |checksum, info|
|
112
113
|
if info['needs_upload'] == true
|
113
|
-
Chef::Log.
|
114
|
+
Chef::Log.info("Uploading #{checksum_files[checksum]} (checksum hex = #{checksum}) to #{info['url']}")
|
114
115
|
|
115
116
|
# Checksum is the hexadecimal representation of the md5,
|
116
117
|
# but we need the base64 encoding for the content-md5
|
@@ -134,6 +135,8 @@ class Chef
|
|
134
135
|
Chef::Log.error("Upload failed: #{e.message}\n#{e.response.body}")
|
135
136
|
raise
|
136
137
|
end
|
138
|
+
else
|
139
|
+
Chef::Log.debug("#{checksum_files[checksum]} has not changed")
|
137
140
|
end
|
138
141
|
end
|
139
142
|
sandbox_url = new_sandbox['uri']
|
@@ -189,6 +192,8 @@ class Chef
|
|
189
192
|
when "401"
|
190
193
|
Chef::Log.fatal "Request failed due to authentication (#{e}), check your client configuration (username, key)"
|
191
194
|
exit 18
|
195
|
+
else
|
196
|
+
raise
|
192
197
|
end
|
193
198
|
end
|
194
199
|
end
|
data/lib/chef/version.rb
CHANGED
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 9
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.9.0.
|
9
|
+
- a8
|
10
|
+
version: 0.9.0.a8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adam Jacob
|
@@ -184,6 +184,32 @@ dependencies:
|
|
184
184
|
version: "0"
|
185
185
|
type: :runtime
|
186
186
|
version_requirements: *id011
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: highline
|
189
|
+
prerelease: false
|
190
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
191
|
+
none: false
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
segments:
|
196
|
+
- 0
|
197
|
+
version: "0"
|
198
|
+
type: :runtime
|
199
|
+
version_requirements: *id012
|
200
|
+
- !ruby/object:Gem::Dependency
|
201
|
+
name: uuidtools
|
202
|
+
prerelease: false
|
203
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
204
|
+
none: false
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
segments:
|
209
|
+
- 0
|
210
|
+
version: "0"
|
211
|
+
type: :runtime
|
212
|
+
version_requirements: *id013
|
187
213
|
description: A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
|
188
214
|
email: adam@opscode.com
|
189
215
|
executables:
|