Sha256: 884548d95f376217563546dcf1968bd162fd600f030711200a137347d7b96756

Contents?: true

Size: 814 Bytes

Versions: 11

Compression:

Stored size: 814 Bytes

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

    #
    # ship info json
    #
    desc 'json', 'Print json takelship info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
      Print json takelship info
    LONGDESC
    # Print json takelship info.
    def json
      say _ship_info_lib_get_takelshipinfo.to_json
    end

    #
    # ship info yaml
    #
    desc 'yaml', 'Print yaml takelship info'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
      Print yaml takelship info
    LONGDESC
    # Print yaml takelship info.
    def yaml
      say _ship_info_lib_get_takelshipinfo.to_yaml
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
takeltau-0.43.23 lib/takeltau/ship/info/cli.rb
takeltau-0.43.21 lib/takeltau/ship/info/cli.rb
takeltau-0.43.19 lib/takeltau/ship/info/cli.rb
takeltau-0.43.16 lib/takeltau/ship/info/cli.rb
takeltau-0.43.15 lib/takeltau/ship/info/cli.rb
takeltau-0.43.14 lib/takeltau/ship/info/cli.rb
takeltau-0.43.10 lib/takeltau/ship/info/cli.rb
takeltau-0.43.6 lib/takeltau/ship/info/cli.rb
takeltau-0.43.4 lib/takeltau/ship/info/cli.rb
takeltau-0.43.2 lib/takeltau/ship/info/cli.rb
takeltau-0.43.1 lib/takeltau/ship/info/cli.rb