Class: Takelage::MutagenCheck
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takelage::MutagenCheck
- Includes:
- ConfigModule, DockerCheckDaemon, DockerContainerCheckExisting, DockerContainerCheckNetwork, DockerContainerCommand, DockerContainerLib, LoggingModule, MutagenCheckDaemon, SystemModule
- Defined in:
- lib/takelage/mutagen/check/cli.rb
Overview
takelage mutagen check
Instance Method Summary collapse
-
#daemon ⇒ Object
Check if mutagen host conenction is available.
-
#initialize(args = [], local_options = {}, configuration = {}) ⇒ MutagenCheck
constructor
Initialize mutagen check.
Methods included from MutagenCheckDaemon
Methods included from DockerContainerCommand
Methods included from DockerContainerCheckNetwork
#docker_container_check_network
Methods included from DockerContainerCheckExisting
#docker_container_check_existing
Methods included from DockerCheckDaemon
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
Methods inherited from SubCommandBase
Constructor Details
#initialize(args = [], local_options = {}, configuration = {}) ⇒ MutagenCheck
Initialize mutagen check
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/takelage/mutagen/check/cli.rb', line 17 def initialize(args = [], = {}, configuration = {}) # initialize thor parent class super args, , configuration @workdir = Dir.getwd inside = _docker_container_lib_check_matrjoschka @hostname = inside ? ENV['HOSTNAME'] : _docker_container_lib_hostname @hostlabel = "hostname=#{@hostname}" end |
Instance Method Details
#daemon ⇒ Object
Check if mutagen host conenction is available.
36 37 38 |
# File 'lib/takelage/mutagen/check/cli.rb', line 36 def daemon exit mutagen_check_daemon end |