Sha256: efdb84b93f06536e37119aa1ec67f9d0dcadb8e3d1660d27b1bb40cff79253fb

Contents?: true

Size: 325 Bytes

Versions: 7

Compression:

Stored size: 325 Bytes

Contents

module Stationed
  class AppBuilder < Rails::AppBuilder
    def readme
      template 'README.md.erb', 'README.md'
    end

    def database_yml
      super
      append_to_file '.gitignore', "config/database.yml\n"
      template "config/databases/#{options[:database]}.yml", "config/database.yml.example"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stationed-0.6.0 lib/stationed/app_builder.rb
stationed-0.5.0 lib/stationed/app_builder.rb
stationed-0.4.0 lib/stationed/app_builder.rb
stationed-0.3.0 lib/stationed/app_builder.rb
stationed-0.2.0 lib/stationed/app_builder.rb
stationed-0.1.0 lib/stationed/app_builder.rb
stationed-0.0.1 lib/stationed/app_builder.rb