Class: Takeltau::InfoStatus
- Inherits:
-
SubCommandBase
- Object
- Thor
- SubCommandBase
- Takeltau::InfoStatus
- Includes:
- ConfigModule, DockerCheckDaemon, DockerContainerCheckExisting, DockerContainerCheckNetwork, DockerContainerCommand, DockerContainerLib, GitCheckWorkspace, InfoStatusArch, InfoStatusBar, InfoStatusGPG, InfoStatusGit, InfoStatusGopass, InfoStatusHg, InfoStatusLib, InfoStatusSSH, LoggingModule, MutagenCheckDaemon, SystemModule
- Defined in:
- lib/takeltau/info/status/cli.rb
Overview
tau info status
Instance Method Summary collapse
-
#arch ⇒ Object
Check arch status info.
-
#bar ⇒ Object
Print status info bar.
-
#git ⇒ Object
Check git status info.
-
#gopass ⇒ Object
Check gopass status info.
-
#gpg ⇒ Object
Check gpg status info.
-
#hg ⇒ Object
Check hg status info.
-
#initialize(args = [], local_options = {}, configuration = {}) ⇒ InfoStatus
constructor
Initialize info status.
-
#mutagen ⇒ Object
Check mutagen status info.
-
#ssh ⇒ Object
Check ssh status info.
Methods included from MutagenCheckDaemon
Methods included from InfoStatusBar
Methods included from InfoStatusSSH
Methods included from InfoStatusHg
Methods included from InfoStatusGPG
Methods included from InfoStatusGopass
Methods included from InfoStatusGit
Methods included from InfoStatusArch
Methods included from GitCheckWorkspace
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?, #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
Methods inherited from SubCommandBase
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 = [], = {}, 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
#arch ⇒ Object
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 |
#bar ⇒ Object
Print status info bar.
45 46 47 |
# File 'lib/takeltau/info/status/cli.rb', line 45 def exit end |
#git ⇒ Object
Check git status info.
72 73 74 |
# File 'lib/takeltau/info/status/cli.rb', line 72 def git exit info_status_git end |
#gopass ⇒ Object
Check gopass status info.
84 85 86 |
# File 'lib/takeltau/info/status/cli.rb', line 84 def gopass exit info_status_gopass end |
#gpg ⇒ Object
Check gpg status info.
96 97 98 |
# File 'lib/takeltau/info/status/cli.rb', line 96 def gpg exit info_status_gpg end |
#hg ⇒ Object
Check hg status info.
108 109 110 |
# File 'lib/takeltau/info/status/cli.rb', line 108 def hg exit info_status_hg end |
#mutagen ⇒ Object
Check mutagen status info.
120 121 122 |
# File 'lib/takeltau/info/status/cli.rb', line 120 def mutagen exit mutagen_check_daemon end |
#ssh ⇒ Object
Check ssh status info.
132 133 134 |
# File 'lib/takeltau/info/status/cli.rb', line 132 def ssh exit info_status_ssh end |