Class: Takeltau::Mutagen

Inherits:
SubCommandBase show all
Includes:
ConfigModule, DockerCheckDaemon, DockerContainerLib, LoggingModule, MutagenCheckDaemon, SystemModule
Defined in:
lib/takeltau/mutagen/cli.rb

Overview

tau mutagen

Instance Method Summary collapse

Methods included from MutagenCheckDaemon

#mutagen_check_daemon

Methods included from DockerCheckDaemon

#docker_check_daemon

Methods included from ConfigModule

#config, #configured?, #initialize_config

Methods included from SystemModule

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

Methods included from LoggingModule

#initialize_logging, #log

Methods inherited from SubCommandBase

banner, subcommand_prefix

Constructor Details

#initialize(args = [], local_options = {}, configuration = {}) ⇒ Mutagen

Returns a new instance of Mutagen.



13
14
15
16
17
18
19
20
21
22
# File 'lib/takeltau/mutagen/cli.rb', line 13

def initialize(args = [], local_options = {}, configuration = {})
  # initialize thor parent class
  super

  log.debug 'Check docker dameon for mutagen subcommand'
  exit false unless docker_check_daemon

  log.debug 'Check mutagen dameon for mutagen subcommand'
  exit false unless mutagen_check_daemon
end