Class: Integrity::Installer
- Includes:
- FileUtils
- Defined in:
- lib/integrity/installer.rb
Instance Method Summary collapse
Instance Method Details
#install(path) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/integrity/installer.rb', line 18 def install(path) @root = Pathname(path). create_dir_structure copy_template_files edit_template_files puts end |
#migrate_db(config) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/integrity/installer.rb', line 30 def migrate_db(config) Integrity.new(config) require "integrity/migrations" Integrity.migrate_db end |