Sha256: e5c114b0aac0fdc99755242d7fbd7956acf76febbf3f617e22f21038e9e23273

Contents?: true

Size: 409 Bytes

Versions: 26

Compression:

Stored size: 409 Bytes

Contents

module Heirloom
  class Downloader
    class S3

      def initialize(args)
        @config = args[:config]
        @region = args[:region]
        @logger = @config.logger
      end

      def download_file(args)
        s3.get_object args[:bucket], args[:key]
      end

      def s3
        @s3 ||= AWS::S3.new :config => @config,
                            :region => @region
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
heirloom-0.8.3 lib/heirloom/downloader/s3.rb
heirloom-0.8.2 lib/heirloom/downloader/s3.rb
heirloom-0.8.1 lib/heirloom/downloader/s3.rb
heirloom-0.8.0 lib/heirloom/downloader/s3.rb
heirloom-0.7.4 lib/heirloom/downloader/s3.rb
heirloom-0.7.3 lib/heirloom/downloader/s3.rb
heirloom-0.7.3rc2 lib/heirloom/downloader/s3.rb
heirloom-0.7.3rc1 lib/heirloom/downloader/s3.rb
heirloom-0.7.2 lib/heirloom/downloader/s3.rb
heirloom-0.7.2rc2 lib/heirloom/downloader/s3.rb
heirloom-0.7.2rc1 lib/heirloom/downloader/s3.rb
heirloom-0.7.1 lib/heirloom/downloader/s3.rb
heirloom-0.7.0 lib/heirloom/downloader/s3.rb
heirloom-0.7.0rc1 lib/heirloom/downloader/s3.rb
heirloom-0.6.1 lib/heirloom/downloader/s3.rb
heirloom-0.6.0rc1 lib/heirloom/downloader/s3.rb
heirloom-0.5.0rc4 lib/heirloom/downloader/s3.rb
heirloom-0.5.0rc3 lib/heirloom/downloader/s3.rb
heirloom-0.5.0rc2 lib/heirloom/downloader/s3.rb
heirloom-0.5.0rc1 lib/heirloom/downloader/s3.rb