Sha256: b60651835174125db1afa8d15a9ebd270eec61e795937bf1f8b1bfc919d2d881

Contents?: true

Size: 433 Bytes

Versions: 12

Compression:

Stored size: 433 Bytes

Contents

module HasAttached
  class InstallGenerator < Rails::Generators::Base
    
    source_root File.expand_path('../templates', __FILE__)
      
    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

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
has-attached-0.2.5 lib/generators/has_attached/install_generator.rb
has-attached-0.2.4 lib/generators/has_attached/install_generator.rb
has-attached-0.2.3 lib/generators/has_attached/install_generator.rb
has-attached-0.2.2 lib/generators/has_attached/install_generator.rb
has-attached-0.1.9 lib/generators/has_attached/install_generator.rb
has-attached-0.1.8 lib/generators/has_attached/install_generator.rb
has-attached-0.1.7 lib/generators/has_attached/install_generator.rb
has-attached-0.1.6 lib/generators/has_attached/install_generator.rb
has-attached-0.1.5 lib/generators/has_attached/install_generator.rb
has-attached-0.1.4 lib/generators/has_attached/install_generator.rb
has-attached-0.1.3 lib/generators/has_attached/install_generator.rb
has-attached-0.1.2 lib/generators/has-attached/install_generator.rb