Project

General

Profile

Bug #10019 » BucketTest.rb

wkwood (Will Wood), 07/09/2014 02:38 PM

 
require 'rubygems'
require 'aws-sdk'

AWS.config({:access_key_id => ENV['aws-key'],
:secret_access_key => ENV['aws-secret-key'})
s3 = AWS::S3.new( { :region => 'us-east-1' })

bucket = s3.buckets[ENV['bucketName']]
bucket.objects.each do | ob |
puts ob.key + ',' + ob.last_modified.to_date.to_s
end

(2-2/3)