Class: Takelage::InfoStatus

Overview

takelage 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 InfoStatusGPG

#info_status_gpg

Methods included from InfoStatusGopass

#info_status_gopass

Methods included from InfoStatusGit

#info_status_git

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

Initialize info status



24
25
26
27
28
29
30
31
32
33
# File 'lib/takelage/info/status/cli.rb', line 24

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

#barObject

Print status info bar.



43
44
45
# File 'lib/takelage/info/status/cli.rb', line 43

def bar
  say info_status_bar
end

#gitObject

Check git status info.



55
56
57
# File 'lib/takelage/info/status/cli.rb', line 55

def git
  exit info_status_git
end

#gopassObject

Check gopass status info.



67
68
69
# File 'lib/takelage/info/status/cli.rb', line 67

def gopass
  exit info_status_gopass
end

#gpgObject

Check gpg status info.



79
80
81
# File 'lib/takelage/info/status/cli.rb', line 79

def gpg
  exit info_status_gpg
end

#mutagenObject

Check mutagen status info.



91
92
93
# File 'lib/takelage/info/status/cli.rb', line 91

def mutagen
  exit mutagen_check_daemon
end

#sshObject

Check ssh status info.



103
104
105
# File 'lib/takelage/info/status/cli.rb', line 103

def ssh
  exit info_status_ssh
end