Class: Takelage::DockerContainerCheck

Inherits:
SubCommandBase show all
Includes:
ConfigModule, DockerCheckDaemon, DockerCheckSocat, 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 DockerCheckSocat

#docker_check_socat

Methods included from DockerCheckDaemon

#docker_check_daemon

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

#hash_to_yaml, #read_yaml_erb_file, #read_yaml_file, #rm_fr, #run, #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.



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

def existing(container)
  exit docker_container_check_existing container
end

#network(network) ⇒ Object

Check if docker network is existing.



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

def network(network)
  exit docker_container_check_network network
end

#orphaned(container) ⇒ Object

Check if docker container is orphaned.



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

def orphaned(container)
  exit docker_container_check_orphaned container
end