class Kaiser::Cmds::DbReset
Public Instance Methods
execute(_opts)
click to toggle source
# File lib/kaiser/cmds/db_reset.rb, line 16 def execute(_opts) ensure_setup load_db('.default') end
usage()
click to toggle source
# File lib/kaiser/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 \`~/.kaiser/<ENV_NAME>/<current_github_branch_name>/.default.tar.bz\` and brings the container up again. This is the same as running \`kaiser db_load\` with no arguments. USAGE: kaiser db_reset EOS end