Sha256: f26e0d3dacad3c8375de9232157245201e42f9eccf1adaaabc89b09a4c07d922

Contents?: true

Size: 374 Bytes

Versions: 11

Compression:

Stored size: 374 Bytes

Contents

class S3Collection
  include GemConfigurator
  
  attr_accessor :files

  # Instantiates and configures a S3Collection, using the s3_collection.yml configuration file.
  def initialize
    configure
    connection = AWS::S3::Base.establish_connection! @settings['connection']
    Bucket.create(@settings['bucket'])
    self.files = Bucket.find(@settings['bucket'])
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
redis_importer-1.1.7 lib/collections/S3_collection.rb
redis_importer-1.1.6 lib/collections/S3_collection.rb
redis_importer-1.1.5 lib/collections/S3_collection.rb
redis_importer-1.1.4 lib/collections/S3_collection.rb
redis_importer-1.1.3 lib/collections/S3_collection.rb
redis_importer-1.1.2 lib/collections/S3_collection.rb
redis_importer-1.1.1 lib/collections/S3_collection.rb
redis_importer-1.1.0 lib/collections/S3_collection.rb
redis_importer-1.0.2 lib/collections/S3_collection.rb
redis_importer-1.0.1 lib/collections/S3_collection.rb
redis_importer-1.0.0 lib/collections/S3_collection.rb