Sha256: 26b43af4e33f567331f171f6cc0aadec08f5c1583e9b4977063c09b93db3b3c3
Contents?: true
Size: 356 Bytes
Versions: 3
Compression:
Stored size: 356 Bytes
Contents
class S3Collection def initialize credentials = YAML.load_file(File.open('config/s3_credentials.yml'))['development'] connection = AWS::S3::Base.establish_connection! credentials['connection'] bucket_name = credentials['bucket'] Bucket.create(bucket_name) @bucket = Bucket.find(bucket_name) end def files @bucket end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redis_importer-0.0.3 | lib/collections/S3_collection.rb |
redis_importer-0.0.2 | lib/collections/S3_collection.rb |
redis_importer-0.0.1 | lib/collections/S3_collection.rb |