Sha256: 9a8835003c84b639ffbb5a7f8e668c0dbc4152648dd33ef41e55b2677e221eaa

Contents?: true

Size: 1008 Bytes

Versions: 18

Compression:

Stored size: 1008 Bytes

Contents

gem 'fog'
gem 'carrierwave'

region = config['region']
bucket = ask_wizard("Please enter S3 bucket")

carrierwave_initializer = <<-RB
CarrierWave.configure do |config|
  config.fog_credentials = {
    :provider               => 'AWS',
    :aws_access_key_id      => 'CHANGEME',
    :aws_secret_access_key  => 'CHANGEME',
    :region                 => '#{region}'
  }
  config.fog_directory  = '#{bucket}'
  config.fog_public     = true
  # config.fog_host       = 'https://assets.changeme.com.au'
  # config.fog_attributes = {'Cache-Control' => 'max-age=315576000'}
end
RB

end

__END__

name: Carrierwave
description: "Use Carrierwave for file uploading"
author: jonochang

exclusive: file-uploads 
tags: [file-uploads]

config:
  - region:
      type: multiple_choice
      prompt: "Which region are you using?"
      choices:
        - ["US Standard", us-east-1]
        - ["Oregon", us-west-2]
        - ["Ireland", eu-west-1]
        - ["Singapore", ap-southeast-1]
        - ["Tokyo", ap-northeast-1]

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
appscrolls-0.11.2 scrolls/untested/carrierwave.rb
appscrolls-0.11.1 scrolls/untested/carrierwave.rb
appscrolls-0.11.0 scrolls/untested/carrierwave.rb
appscrolls-0.10.1 scrolls/untested/carrierwave.rb
appscrolls-0.10.0 scrolls/untested/carrierwave.rb
appscrolls-0.9.0 scrolls/untested/carrierwave.rb
appscrolls-0.8.4 scrolls/zzz/carrierwave.rb
appscrolls-0.8.3 scrolls/zzz/carrierwave.rb
appscrolls-0.8.2 scrolls/zzz/carrierwave.rb
appscrolls-0.8.1 scrolls/zzz/carrierwave.rb
appscrolls-0.8.0 scrolls/zzz/carrierwave.rb
appscrolls-0.7.1 scrolls/zzz/carrierwave.rb
appscrolls-0.7.0 scrolls/zzz/carrierwave.rb
eldarscrolls-0.7.0 scrolls/zzz/carrierwave.rb
ey_rails_wizard-0.6.0 scrolls/zzz/carrierwave.rb
ey_rails_wizard-0.5.0 scrolls/carrierwave.rb
ey_rails_wizard-0.4.0 scrolls/carrierwave.rb
ey_rails_wizard-0.3.1 recipes/carrierwave.rb