Class: Embryo::PostgresGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
GeneratorHelpers::Files, GeneratorHelpers::Hidden
Defined in:
lib/generators/embryo/postgres.rb

Instance Method Summary collapse

Methods included from GeneratorHelpers::Files

#append_file, #application_name, #duplicate_file, #gitignore

Methods included from GeneratorHelpers::Hidden

included, namespaces

Instance Method Details

#installObject



8
9
10
11
12
13
# File 'lib/generators/embryo/postgres.rb', line 8

def install
  gem "pg"
  create_file "config/database.yml", database_yml_data
  create_file "config/database.yml.example", database_yml_data
  gitignore "config/database.yml"
end