Class: S3Compliance

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/nimbleshop/app/templates/config/initializers/carrierwave.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ S3Compliance

Returns a new instance of S3Compliance.


2
3
4
# File 'lib/generators/nimbleshop/app/templates/config/initializers/carrierwave.rb', line 2

def initialize(key)
  @key = key
end

Instance Method Details

#raise_errorObject


5
6
7
8
# File 'lib/generators/nimbleshop/app/templates/config/initializers/carrierwave.rb', line 5

def raise_error
  raise %Q{ This application's #{Rails.env} environment is configured to use amazon s3.
    However #{@key} to use is not specified at config/nimbleshop.yml .  }
end