Sha256: bdbd0d5772eb12dcbbbe5b5a7dd97cb8054e9334e26a73adb0f09906ea023eb6

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 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
    include ShipContainerUpdate

    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)
      say ship_container_podman args
    end

    #
    # ship container update
    #
    desc 'update', 'Update takelship image'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
      Update takelship image
    LONGDESC
    # Update takelship image.
    def update
      ship_container_update
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
takeltau-0.43.14 lib/takeltau/ship/container/cli.rb
takeltau-0.43.10 lib/takeltau/ship/container/cli.rb
takeltau-0.43.6 lib/takeltau/ship/container/cli.rb
takeltau-0.43.4 lib/takeltau/ship/container/cli.rb