Class: Integrity::Installer
- 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, 1) 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.(path) create_dir_structure copy_template_files edit_template_files create_db(root / "config.yml") end |
#version ⇒ Object
29 30 31 |
# File 'lib/integrity/installer.rb', line 29 def version puts Integrity.version end |