Sha256: cf74191db58926c7a8d0f35dec1e4aed528d5632b3fd7c645c07862430a6a913
Contents?: true
Size: 357 Bytes
Versions: 7
Compression:
Stored size: 357 Bytes
Contents
class S3Collection def initialize configuration = YAML.load_file(File.open('config/s3_config.yml'))['development'] connection = AWS::S3::Base.establish_connection! configuration['connection'] bucket_name = configuration['bucket'] Bucket.create(bucket_name) @bucket = Bucket.find(bucket_name) end def files @bucket end end
Version data entries
7 entries across 7 versions & 1 rubygems