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.

@@ -30,7 +30,7 @@ class Chef
30
30
  include Enumerable
31
31
 
32
32
  def initialize()
33
- @cookbooks_by_name = Hash.new
33
+ @cookbooks_by_name = Mash.new
34
34
  @metadata = Hash.new
35
35
  @ignore_regexes = Hash.new { |hsh, key| hsh[key] = Array.new }
36
36
  load_cookbooks
@@ -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.debug("PUTting #{checksum_files[checksum]} (checksum hex = #{checksum}) to #{info['url']}")
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
@@ -16,5 +16,5 @@
16
16
  # limitations under the License.
17
17
 
18
18
  class Chef
19
- VERSION = '0.9.0.a6'
19
+ VERSION = '0.9.0.a8'
20
20
  end
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 9
8
8
  - 0
9
- - a6
10
- version: 0.9.0.a6
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: