asciinema.org/config/initializers/carrierwave.rb

14 lines
388 B
Ruby
Raw Normal View History

CarrierWave.configure do |config|
if CFG.carrierwave_storage == 'fog'
config.storage = :fog
2012-03-10 16:05:45 +00:00
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => CFG.aws_access_key_id,
:aws_secret_access_key => CFG.aws_secret_access_key,
:region => CFG.aws_region
2012-03-10 16:05:45 +00:00
}
config.fog_directory = CFG.aws_bucket
end
2012-03-10 16:05:45 +00:00
end