Sha256: 88962cba1fdcf23b8bbf4a2ff41a9fbbf918d80f24426de44e5e20a524ae9155
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
if ENV['STORAGE'] == 'fog' Fog.mock! Fog.credentials = { :provider => 'AWS', :aws_access_key_id => 'xxx', :aws_secret_access_key => 'yyy', :region => 'eu-west-1', :host => 's3.example.com', :endpoint => 'https://s3.example.com:8080' } connection = Fog::Storage.new(:provider => 'AWS') connection.directories.create(:key => 'dev-bucket') CarrierWave.configure do |config| config.fog_credentials = Fog.credentials config.fog_directory = 'dev-bucket' config.fog_public = true config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} config.storage = :fog end else CarrierWave.configure do |config| config.storage = :file end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
carrierwave-meta-0.0.7 | spec/support/remote.rb |
carrierwave-meta-0.0.5 | spec/support/remote.rb |