Sha256: 6dbb9480da06d4e3a36fe3c61a4b678e47d5f695c4242038e3bab3aca67fac2c

Contents?: true

Size: 1.34 KB

Versions: 29

Compression:

Stored size: 1.34 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

    #
    # ship info version
    #
    desc 'version', 'Print ship version'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Print ship semantic version number.
    LONGDESC
    def version
      say VERSION
      true
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
takeltau-0.46.9 lib/takeltau/ship/info/cli.rb
takeltau-0.46.8 lib/takeltau/ship/info/cli.rb
takeltau-0.46.5 lib/takeltau/ship/info/cli.rb
takeltau-0.46.1 lib/takeltau/ship/info/cli.rb
takeltau-0.46.0 lib/takeltau/ship/info/cli.rb
takeltau-0.45.27 lib/takeltau/ship/info/cli.rb
takeltau-0.45.26 lib/takeltau/ship/info/cli.rb
takeltau-0.45.24 lib/takeltau/ship/info/cli.rb
takeltau-0.45.23 lib/takeltau/ship/info/cli.rb
takeltau-0.45.22 lib/takeltau/ship/info/cli.rb
takeltau-0.45.21 lib/takeltau/ship/info/cli.rb
takeltau-0.45.19 lib/takeltau/ship/info/cli.rb
takeltau-0.45.17 lib/takeltau/ship/info/cli.rb
takeltau-0.45.16 lib/takeltau/ship/info/cli.rb
takeltau-0.45.14 lib/takeltau/ship/info/cli.rb
takeltau-0.45.13 lib/takeltau/ship/info/cli.rb
takeltau-0.45.12 lib/takeltau/ship/info/cli.rb
takeltau-0.45.11 lib/takeltau/ship/info/cli.rb
takeltau-0.45.10 lib/takeltau/ship/info/cli.rb
takeltau-0.45.9 lib/takeltau/ship/info/cli.rb