lib/capistrano/ops/backup/s3.rb in capistrano-ops-0.2.5 vs lib/capistrano/ops/backup/s3.rb in capistrano-ops-0.2.6

- old
+ new

@@ -9,16 +9,16 @@ secret_access_key: ENV['S3_BACKUP_SECRET']) self.endpoint = endpoint self.region = region self.access_key_id = access_key_id self.secret_access_key = secret_access_key - config = { + configuration = { region: region, access_key_id: access_key_id, secret_access_key: secret_access_key } - config[:endpoint] = endpoint unless endpoint.nil? - self.s3_resource = Aws::S3::Resource.new(config) + configuration[:endpoint] = endpoint unless endpoint.nil? + self.s3_resource = Aws::S3::Resource.new(configuration) end def upload(backup_file, key) begin s3_resource.bucket(ENV['S3_BACKUP_BUCKET']).object(key).upload_file(backup_file)