Sha256: e91622e438d4def8565e6f6dfa2097b4ce6e06aa7575299498824d70a2e720ec
Contents?: true
Size: 1.12 KB
Versions: 16
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true module Takeltau # tau ship info class ShipInfo < SubCommandBase include LoggingModule include SystemModule include ConfigModule include DockerCheckDaemon include ShipContainerLib include ShipInfoLib desc 'takelconfig', 'Print takelage config' long_desc <<-LONGDESC.gsub("\n", "\x5") Print takelage config. The configuration values can be overwritten by a 1. ~/.takelage.yml in your home directory 2. takelage.yml next to a takelship directory 3. environment variables like TAKELAGE_TAU_CONFIG_SHIP_NAME Alias for tau self config. LONGDESC # ship takelconfig: {Takeltau::SelfConfig#active} def takelconfig Takeltau::SelfConfig.new.active end # # ship info takelship # desc 'takelship', 'Print takelship info' long_desc <<-LONGDESC.gsub("\n", "\x5") Print takelship info. This info is read from a takelship.yml file in a takelship directory. If no such file exists the info is gathered from a takelship. LONGDESC def takelship say _ship_info_lib_get_takelshipinfo.to_yaml end end end
Version data entries
16 entries across 16 versions & 1 rubygems