Class: Kaiser::Cmds::Down

Inherits:
Kaiser::Cli show all
Defined in:
lib/kaiser/cmds/down.rb

Instance Attribute Summary

Attributes inherited from Kaiser::Cli

#use_kaiserfile

Instance Method Summary collapse

Methods inherited from Kaiser::Cli

all_subcommands_usage, #define_options, #initialize, register, run_command, #set_config, #start_services, #stop_app, #stop_services

Methods included from Kaiser::CliOptions

#option, #options

Constructor Details

This class inherits a constructor from Kaiser::Cli

Instance Method Details

#execute(_opts) ⇒ Object



14
15
16
17
18
# File 'lib/kaiser/cmds/down.rb', line 14

def execute(_opts)
  stop_db
  stop_app
  delete_db_volume
end

#usageObject



6
7
8
9
10
11
12
# File 'lib/kaiser/cmds/down.rb', line 6

def usage
  <<~EOS
    Shuts down and *deletes* the containers that were started using \`kaiser up\`.

    USAGE: kaiser down
  EOS
end