class Kaiser::Cmds::DbResetHard
Public Instance Methods
execute(_opts)
click to toggle source
# File lib/kaiser/cmds/db_reset_hard.rb, line 14 def execute(_opts) ensure_setup FileUtils.rm db_image_path('.default') if File.exist?(db_image_path('.default')) setup_db end
usage()
click to toggle source
# File lib/kaiser/cmds/db_reset_hard.rb, line 6 def usage <<~EOS Shuts down the database docker container, deletes the docker volume on which the db was stored, deletes the default database image stored at \`~/.kaiser/<ENV_NAME>/<current_github_branch_name>/.default.tar.bz\`, rebuilds the docker volume and the default database image from scratch and then brings the container up again. USAGE: kaiser db_reset_hard EOS end