Sha256: 5b0ed28e5f8c3e488b5ae3fb348c640c4af0ad379db2bbac216c9fdacd56cb1b

Contents?: true

Size: 767 Bytes

Versions: 1

Compression:

Stored size: 767 Bytes

Contents

class H2ocubeGenerator::AppBuilder < Rails::AppBuilder
  def readme
    template 'README.md.erb', 'README.md'
  end
  
  def gemfile
    template 'Gemfile.erb', 'Gemfile'
  end
  
  def database_yml
    template 'config/mongoid.yml.erb', 'config/mongoid.yml'
  end
  
  def config
    empty_directory 'config'

    inside 'config' do
      template 'routes.rb'
      template 'application.rb.erb', 'application.rb'
      template 'environment.rb'

      empty_directory 'environments'
      
      inside 'environments' do
        template 'development.rb.erb', 'development.rb'
        template 'test.rb.erb', 'test.rb'
        template 'production.rb.erb', 'production.rb'
      end
      
      directory 'initializers'
      directory 'locales'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
h2ocube_generator-0.0.1 lib/h2ocube_generator/app_builder.rb