Class: Takelage::MutagenCheck

Overview

takelage mutagen check

Instance Method Summary collapse

Methods included from MutagenCheckDaemon

#mutagen_check_daemon

Methods included from DockerContainerCommand

#docker_container_command

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

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 = [], local_options = {}, configuration = {})
  # initialize thor parent class
  super args, local_options, 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

#daemonObject

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