Skip to content

Commit

Permalink
Make the cleanup task working with the latest fog
Browse files Browse the repository at this point in the history
  • Loading branch information
ml committed Apr 18, 2014
1 parent 113d95d commit c304599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/s3_direct_upload.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace :s3_direct_upload do
require 'thread'
require 'fog'

s3 = Fog::Storage::AWS.new(aws_access_key_id: S3DirectUpload.config.access_key_id, aws_secret_access_key: S3DirectUpload.config.secret_access_key)
s3 = Fog::Storage.new(provider: "AWS", aws_access_key_id: S3DirectUpload.config.access_key_id, aws_secret_access_key: S3DirectUpload.config.secret_access_key)
bucket = S3DirectUpload.config.bucket
prefix = S3DirectUpload.config.prefix_to_clean || "uploads/#{2.days.ago.strftime('%Y%m%d')}"

Expand Down

0 comments on commit c304599

Please sign in to comment.