Class: Integrity::Installer

Inherits:
Thor
  • Object
show all
Includes:
FileUtils
Defined in:
lib/integrity/installer.rb

Instance Method Summary collapse

Instance Method Details

#create_db(config, direction = "up") ⇒ Object



22
23
24
25
# File 'lib/integrity/installer.rb', line 22

def create_db(config, direction="up")
  Integrity.new(config)
  migrate_db(direction)
end

#install(path) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/integrity/installer.rb', line 10

def install(path)
  @root = File.expand_path(path)

  create_dir_structure
  copy_template_files
  edit_template_files
  create_db(root / "config.yml")
  after_setup_message
end

#versionObject



29
30
31
# File 'lib/integrity/installer.rb', line 29

def version
  puts Integrity.version
end