lib/capistrano/recipes/deploy/strategy/s3_copy.rb in capistrano-s3-copy-0.0.2 vs lib/capistrano/recipes/deploy/strategy/s3_copy.rb in capistrano-s3-copy-0.0.3
- old
+ new
@@ -31,11 +31,11 @@
# Distributes the file to the remote servers
def distribute!
package_path = filename
package_name = File.basename(package_path)
- s3_push_cmd = "#{aws_environment} s3cmd put #{bucket_name}:#{rails_env}/#{package_name} #{package_path} x-amz-server-side-encryption:AES256"
+ s3_push_cmd = "#{aws_environment} s3cmd put #{bucket_name}:#{rails_env}/#{package_name} #{package_path} x-amz-server-side-encryption:AES256 2>&1"
if configuration.dry_run
logger.debug s3_push_cmd
else
system(s3_push_cmd)
@@ -57,10 +57,10 @@
output = template.result(self.binding)
local_output_file = File.join(copy_dir, "aws_install.sh")
File.open(local_output_file, "w") do |f|
f.write(output)
end
- configuration[:s3_copy_aws_install_cmd] = "#{aws_environment} s3cmd put #{bucket_name}:#{rails_env}/aws_install.sh #{local_output_file} x-amz-server-side-encryption:AES256"
+ configuration[:s3_copy_aws_install_cmd] = "#{aws_environment} s3cmd put #{bucket_name}:#{rails_env}/aws_install.sh #{local_output_file} x-amz-server-side-encryption:AES256 2>&1"
end
def binding
super
end