Class: Kaiser::Cmds::Down
- Inherits:
-
Kaiser::Cli
- Object
- Kaiser::Cli
- Kaiser::Cmds::Down
- Defined in:
- lib/kaiser/cmds/down.rb
Instance Attribute Summary
Attributes inherited from Kaiser::Cli
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
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 |
#usage ⇒ Object
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 |