lib/backup/storage/aliyun.rb in backup-aliyun-0.1.0 vs lib/backup/storage/aliyun.rb in backup-aliyun-0.1.1
- old
+ new
@@ -33,10 +33,10 @@
@package.filenames.each do |filename|
src = File.join(Config.tmp_path, filename)
dest = File.join(remote_path, filename)
Logger.info "#{storage_name} uploading '#{ dest }'..."
File.open(src, 'r') do |file|
- connection.put(dest, file.read)
+ connection.put(dest, file)
end
end
end
def remove!(package)