class Kaiser::Cmds::DbLoad
Public Instance Methods
execute(_opts)
click to toggle source
# File lib/kaiser/cmds/db_load.rb, line 22 def execute(_opts) ensure_setup name = ARGV.shift || '.default' load_db(name) end
usage()
click to toggle source
# File lib/kaiser/cmds/db_load.rb, line 6 def usage <<~EOS Shuts down the database docker container, *replaces* the database with the backup provided and brings the container up again. The database will be restored from a tarball saved as \`~/.kaiser/<ENV_NAME>/<current_github_branch_name>/<DB_BACKUP_FILENAME>.tar.bz\` Alternatively you can also load it from your current directory. If no database name was provided, the default database stored at \`~/.kaiser/<ENV_NAME>/<current_github_branch_name>/.default.tar.bz\` will be used. USAGE: kaiser db_load kaiser db_load DB_BACKUP_FILENAME kaiser db_load ./my_database.tar.bz EOS end