lib/astrails/safe/s3.rb in astrails-safe-0.2.6 vs lib/astrails/safe/s3.rb in astrails-safe-0.2.7
- old
+ new
@@ -39,10 +39,9 @@
def cleanup
return if $LOCAL
return unless keep = @config[:keep, :s3]
-
puts "listing files: #{bucket}:#{base}*" if $_VERBOSE
files = AWS::S3::Bucket.objects(bucket, :prefix => base, :max_keys => keep * 2)
puts files.collect {|x| x.key} if $_VERBOSE
files = files.