Class: Heighliner::Cmds::DbReset
- Inherits:
-
Heighliner::Cli
- Object
- Heighliner::Cli
- Heighliner::Cmds::DbReset
- Defined in:
- lib/heighliner/cmds/db_reset.rb
Instance Attribute Summary
Attributes inherited from Heighliner::Cli
Instance Method Summary collapse
Methods inherited from Heighliner::Cli
all_subcommands_usage, #define_options, #initialize, register, run_command, #set_config, #start_services, #stop_app, #stop_services
Methods included from Heighliner::CliOptions
Constructor Details
This class inherits a constructor from Heighliner::Cli
Instance Method Details
#execute(_opts) ⇒ Object
16 17 18 19 |
# File 'lib/heighliner/cmds/db_reset.rb', line 16 def execute(_opts) ensure_setup load_db('default') end |
#usage ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/heighliner/cmds/db_reset.rb', line 6 def usage <<~EOS Shuts down the database docker container, *replaces* the database with the default database image stored at \`~/.heighliner/<ENV_NAME>/<current_github_branch_name>/default.tar.bz\` and brings the container up again. This is the same as running \`heighliner db_load\` with no arguments. USAGE: heighliner db_reset EOS end |