Class: Setup

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/setup.rb

Overview

Handles initial setup of application

Constant Summary collapse

GEM_DIR =

Store the root of the gem directory

"#{__dir__}/.."

Instance Method Summary collapse

Instance Method Details

#db_configObject



12
13
14
# File 'lib/setup.rb', line 12

def db_config
  template "config.yml.erb", "#{__dir__}/../lib/db/config.yml", {quiet: true, force: true}
end

#standard_migrations_overrideObject



17
18
19
# File 'lib/setup.rb', line 17

def standard_migrations_override
  template "standalone_migrations.yml.erb", "#{__dir__}/../.standalone_migrations", {quiet: true, force: true}
end