class Setup
Handles initial setup of application
Constants
- GEM_DIR
Store the root of the gem directory
- HOME_DIR
Store users home directory
Public Instance Methods
db_config()
click to toggle source
# File lib/setup.rb, line 14 def db_config unless File.exist?("#{HOME_DIR}/.my_todo/data") `mkdir -p #{HOME_DIR}/.my_todo/data` say "Created .my_todo in #{HOME_DIR}" end template "config.yml.erb", "#{__dir__}/../lib/db/config.yml", force: true end
standard_migrations_override()
click to toggle source
# File lib/setup.rb, line 23 def standard_migrations_override template "standalone_migrations.yml.erb", "#{__dir__}/../.standalone_migrations", force: true end