Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Hutchens committed Nov 9, 2011
1 parent 4de24c1 commit e8c5307
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/asset_sync/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ def local_files

def get_remote_files
raise BucketNotFound.new("AWS Bucket: #{self.config.aws_bucket} not found.") unless bucket
return bucket.files.map { |f| f.key }
# fixes: https://github.com/rumblelabs/asset_sync/issues/16
# (work-around for https://github.com/fog/fog/issues/596)
files = []
bucket.files.each { |f| files << f.key }
return files
end

def delete_file(f, remote_files_to_delete)
Expand Down Expand Up @@ -115,4 +119,4 @@ def sync
end

end
end
end

0 comments on commit e8c5307

Please sign in to comment.