Class: Takeltau::InfoStatus

Overview

tau info status

Instance Method Summary collapse

Methods included from MutagenCheckDaemon

#mutagen_check_daemon

Methods included from InfoStatusBar

#info_status_bar

Methods included from InfoStatusSSH

#info_status_ssh

Methods included from InfoStatusHg

#info_status_hg

Methods included from InfoStatusGPG

#info_status_gpg

Methods included from InfoStatusGopass

#info_status_gopass

Methods included from InfoStatusGit

#info_status_git

Methods included from InfoStatusArch

#info_status_arch

Methods included from GitCheckWorkspace

#git_check_workspace

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?, #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 = {}) ⇒ InfoStatus

Initialize info status



26
27
28
29
30
31
32
33
34
35
# File 'lib/takeltau/info/status/cli.rb', line 26

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

  @workdir = Dir.getwd

  inside = _docker_container_lib_check_matrjoschka
  @hostname = inside ? ENV.fetch('HOSTNAME', nil) : _docker_container_lib_hostname
  @hostlabel = "hostname=#{@hostname}"
end

Instance Method Details

#archObject

Check arch status info.



57
58
59
60
61
62
# File 'lib/takeltau/info/status/cli.rb', line 57

def arch
  arch = info_status_arch
  exit false if arch == false
  say arch
  true
end

#barObject

Print status info bar.



45
46
47
# File 'lib/takeltau/info/status/cli.rb', line 45

def bar
  exit info_status_bar
end

#gitObject

Check git status info.



72
73
74
# File 'lib/takeltau/info/status/cli.rb', line 72

def git
  exit info_status_git
end

#gopassObject

Check gopass status info.



84
85
86
# File 'lib/takeltau/info/status/cli.rb', line 84

def gopass
  exit info_status_gopass
end

#gpgObject

Check gpg status info.



96
97
98
# File 'lib/takeltau/info/status/cli.rb', line 96

def gpg
  exit info_status_gpg
end

#hgObject

Check hg status info.



108
109
110
# File 'lib/takeltau/info/status/cli.rb', line 108

def hg
  exit info_status_hg
end

#mutagenObject

Check mutagen status info.



120
121
122
# File 'lib/takeltau/info/status/cli.rb', line 120

def mutagen
  exit mutagen_check_daemon
end

#sshObject

Check ssh status info.



132
133
134
# File 'lib/takeltau/info/status/cli.rb', line 132

def ssh
  exit info_status_ssh
end