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

Version Path
redis_importer-0.0.10 lib/collections/S3_collection.rb
redis_importer-0.0.9 lib/collections/S3_collection.rb
redis_importer-0.0.8 lib/collections/S3_collection.rb
redis_importer-0.0.7 lib/collections/S3_collection.rb
redis_importer-0.0.6 lib/collections/S3_collection.rb
redis_importer-0.0.5 lib/collections/S3_collection.rb
redis_importer-0.0.4 lib/collections/S3_collection.rb