Sha256: 1520fdfaa77e8ee6cd0ce1e3a0c2503348bb0635bd8d8ec994cdf587f8cd6ac3

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

module Takeltau
  # tau docker container
  class ShipContainer < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include DockerCheckDaemon
    include ShipInfoLib
    include ShipContainerCheckExisting
    include ShipContainerLib
    include ShipContainerLogin
    include ShipContainerPodman

    desc 'check [COMMAND]', 'Check takelship container'
    subcommand 'check', ShipContainerCheck

    #
    # ship container login
    #
    desc 'login', 'Run login command'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
      Run login command
    LONGDESC
    # Run login command.
    def login
      ship_container_login
    end

    #
    # ship container podman
    #
    desc 'podman', 'Run podman command'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
      Run podman command
    LONGDESC
    # Run podman command.
    def podman(*args)
      result = ship_container_podman args
      unless result
        say 'No connection to takelship'
        exit 1
      end
      say result
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
takeltau-0.43.1 lib/takeltau/ship/container/cli.rb