class Kaiser::Cmds::Shutdown
Public Instance Methods
execute(_opts)
click to toggle source
# File lib/kaiser/cmds/shutdown.rb, line 16 def execute(_opts) Config.config[:shared_names].each do |_, container_name| killrm container_name end CommandRunner.run Config.out, "docker network rm #{Config.config[:networkname]}" CommandRunner.run Config.out, "docker volume rm #{Config.config[:shared_names][:certs]}" end
usage()
click to toggle source
# File lib/kaiser/cmds/shutdown.rb, line 6 def usage # TODO: Explain a bit more about what these containers do and what shutting # them down really means for an end user. <<~EOS Shuts down all the containers used internally by Kaiser. USAGE: kaiser shutdown EOS end