Class: Integrity::Installer

Inherits:
Thor
  • Object
show all
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).expand_path

  create_dir_structure
  copy_template_files
  edit_template_files
  puts post_install_message
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