lib/takeltau/ship/container/cli.rb in takeltau-0.43.16 vs lib/takeltau/ship/container/cli.rb in takeltau-0.43.19
- old
+ new
@@ -4,31 +4,44 @@
# tau docker container
class ShipContainer < SubCommandBase
include LoggingModule
include SystemModule
include ConfigModule
- include DockerCheckDaemon
include DockerContainerLib
include ShipInfoLib
include ShipContainerCheckExisting
include ShipContainerLib
+ include ShipContainerClean
include ShipContainerList
include ShipContainerLogin
include ShipContainerPodman
+ include ShipContainerStop
include ShipContainerUpdate
desc 'check [COMMAND]', 'Check takelship container'
subcommand 'check', ShipContainerCheck
#
+ # ship container clean
+ #
+ desc 'clean', 'Stop all takelship containers'
+ long_desc <<-LONGDESC.gsub("\n", "\x5")
+ Stop all takelship containers
+ LONGDESC
+ # Stop all takelship containers.
+ def clean
+ ship_container_clean
+ end
+
+ #
# ship container list
#
- desc 'list', 'list command'
+ desc 'list', 'List takelship containers'
long_desc <<-LONGDESC.gsub("\n", "\x5")
- Run list command
+ List takelage containers
LONGDESC
- # Run list command.
+ # List takelage containers.
def list
say ship_container_list
end
#
@@ -51,9 +64,21 @@
Run podman command
LONGDESC
# Run podman command.
def podman(*args)
say ship_container_podman args
+ end
+
+ #
+ # ship container stop
+ #
+ desc 'stop', 'Stop takelship container'
+ long_desc <<-LONGDESC.gsub("\n", "\x5")
+ Stop takelship container
+ LONGDESC
+ # Stop takelship container.
+ def stop
+ ship_container_stop
end
#
# ship container update
#