Class: HasAttached::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/has_attached/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_configObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/generators/has_attached/install_generator.rb', line 6

def generate_config

create_file "config/s3.yml", <<-CONTENT
production:
  bucket: BUCKET_NAME
  access_key_id: ACCESS_KEY_ID
  secret_access_key: SECRET_ACCESS_KEY
CONTENT

create_file "config/styles.yml", <<-CONTENT
styles:
  photo:
large: "800x600"
CONTENT

end