Sha256: 87b60ad0d7d7d2f2dc9329b381b83b296e542fac0136a9016510ba17db54ecbc

Contents?: true

Size: 622 Bytes

Versions: 16

Compression:

Stored size: 622 Bytes

Contents

module Dragonfly
  module Config

    module Heroku

      def self.apply_configuration(app, bucket_name)
        app.configure do |c|
          c.datastore = Dragonfly::DataStorage::S3DataStore.new
          c.datastore.configure do |d|
            d.bucket_name = bucket_name
            d.access_key_id = ENV['S3_KEY'] || raise("ENV variable 'S3_KEY' needs to be set - use\n\theroku config:add S3_KEY=XXXXXXXXX")
            d.secret_access_key = ENV['S3_SECRET'] || raise("ENV variable 'S3_SECRET' needs to be set - use\n\theroku config:add S3_SECRET=XXXXXXXXX")
          end
        end
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
dragonfly-0.8.6 lib/dragonfly/config/heroku.rb
dragonfly-0.8.5 lib/dragonfly/config/heroku.rb
dragonfly-0.8.4 lib/dragonfly/config/heroku.rb
fog-dragonfly-0.8.2 lib/dragonfly/config/heroku.rb
dragonfly-0.8.2 lib/dragonfly/config/heroku.rb
fog-dragonfly-0.8.1 lib/dragonfly/config/heroku.rb
dragonfly-0.8.1 lib/dragonfly/config/heroku.rb
dragonfly-0.8.0 lib/dragonfly/config/heroku.rb
dragonfly-0.7.7 lib/dragonfly/config/heroku.rb
dragonfly-0.7.6 lib/dragonfly/config/heroku.rb
dragonfly-0.7.5 lib/dragonfly/config/heroku.rb
dragonfly-0.7.4 lib/dragonfly/config/heroku.rb
dragonfly-0.7.3 lib/dragonfly/config/heroku.rb
dragonfly-0.7.2 lib/dragonfly/config/heroku.rb
dragonfly-0.7.1 lib/dragonfly/config/heroku.rb
dragonfly-0.7.0 lib/dragonfly/config/heroku.rb