Class: Takeltau::ShipInfo

Inherits:
SubCommandBase show all
Includes:
ConfigModule, DockerCheckDaemon, LoggingModule, ShipContainerLib, ShipInfoLib, SystemModule
Defined in:
lib/takeltau/ship/info/cli.rb

Overview

tau ship info

Instance Method Summary collapse

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

Instance Method Details

#takelconfigObject

ship takelconfig: Takeltau::SelfConfig#active



23
24
25
# File 'lib/takeltau/ship/info/cli.rb', line 23

def takelconfig
  Takeltau::SelfConfig.new.active
end

#takelshipObject



36
37
38
# File 'lib/takeltau/ship/info/cli.rb', line 36

def takelship
  say _ship_info_lib_get_takelshipinfo.to_yaml
end

#versionObject



47
48
49
50
# File 'lib/takeltau/ship/info/cli.rb', line 47

def version
  say VERSION
  true
end