Skip to content

Commit

Permalink
Merge pull request #101 from RiotGames/fix_101
Browse files Browse the repository at this point in the history
S3 Files should be written in binary mode
  • Loading branch information
KAllan357 committed Oct 3, 2013
2 parents 03ea984 + 5fdc0d5 commit 140b0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chef_artifact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def retrieve_from_s3(node, source_file, destination_file)
object = get_s3_object(bucket_name, object_name)

Chef::Log.debug("Downloading #{object_name} from S3 bucket #{bucket_name}")
::File.open(destination_file, 'w') do |file|
::File.open(destination_file, 'wb') do |file|
object.read do |chunk|
file.write(chunk)
end
Expand Down

0 comments on commit 140b0ba

Please sign in to comment.