Sha256: 456461d1879bd5a80abb6266634b1bf86a1c3357b88ff40b137c4e2da8663f38

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

module Pushfile
  module Amazon

    # Set up amazon
    def amazon
      Fog::Storage.new(
        :provider => 'AWS',
        :aws_access_key_id => Pushfile.settings[:amazon_key],
        :aws_secret_access_key => Pushfile.settings[:amazon_secret]
      )
    end

    # Amazon cdn
    def amazon_cdn
      "#{Pushfile.settings[:amazon_cdn]}/#{Pushfile.settings[:amazon_container]}"
    end

    # Amazon container
    def amazon_container
      Pushfile.settings[:amazon_container]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pushfile-0.1.3 lib/providers/amazon.rb
pushfile-0.1.2 lib/providers/amazon.rb
pushfile-0.1.1 lib/providers/amazon.rb
pushfile-0.1.0 lib/providers/amazon.rb
pushfile-0.0.2 lib/providers/amazon.rb
pushfile-0.0.1 lib/providers/amazon.rb