Class: Takelage::DockerContainerCheck

Inherits:
SubCommandBase show all
Includes:
ConfigModule, DockerCheckDaemon, DockerContainerCheckExisting, DockerContainerCheckNetwork, DockerContainerCheckOrphaned, LoggingModule, SystemModule
Defined in:
lib/takelage/docker/container/check/cli.rb

Overview

takelage docker container check

Instance Method Summary collapse

Methods included from DockerContainerCheckOrphaned

#docker_container_check_orphaned

Methods included from DockerContainerCheckNetwork

#docker_container_check_network

Methods included from DockerContainerCheckExisting

#docker_container_check_existing

Methods included from DockerCheckDaemon

#docker_check_daemon

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

#command_available_else_error?, #command_available_else_warn?, #hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #run_and_capture, #run_and_exit, #run_and_fork, #try

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#existing(container) ⇒ Object

Check if docker container is existing.



24
25
26
# File 'lib/takelage/docker/container/check/cli.rb', line 24

def existing(container)
  exit docker_container_check_existing container
end

#network(network) ⇒ Object

Check if docker network is existing.



38
39
40
# File 'lib/takelage/docker/container/check/cli.rb', line 38

def network(network)
  exit docker_container_check_network network
end

#orphaned(container) ⇒ Object

Check if docker container is orphaned.



53
54
55
# File 'lib/takelage/docker/container/check/cli.rb', line 53

def orphaned(container)
  exit docker_container_check_orphaned container
end