Sha256: 9a1be339840135080695b3d517f9bae8ceeae3b392d4b2abe0f7b309aea02a42

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

# frozen_string_literal: true

module Takeltau
  # tau docker container
  class ShipProject < SubCommandBase
    include LoggingModule
    include SystemModule
    include ConfigModule
    include DockerCheckDaemon
    include DockerContainerLib
    include ShipContainerCheckExisting
    include ShipContainerLib
    include ShipContainerStop
    include ShipInfoLib
    include ShipProjectList
    include ShipProjectLogs
    include ShipProjectStart

    #
    # ship container list
    #
    desc 'list', 'List takelship projects'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    List all available takelship projects.
    LONGDESC
    def list
      ship_project_list
    end

    #
    # ship container logs
    #
    desc 'logs [PROJECT]', 'Follow logs of [PROJECT]'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Follow logs of project [PROJECT] in a takelship project.
    LONGDESC
    def logs(project = 'default')
      ship_project_logs project
    end

    #
    # ship container start
    #
    desc 'start [PROJECT]', 'Start takelship [PROJECT]'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Start a takelship and run project [PROJECT] in it.
    LONGDESC
    def start(project = 'default')
      ship_project_start project
    end

    #
    # ship project stop
    #
    desc 'stop', 'Stop a takelship project'
    long_desc <<-LONGDESC.gsub("\n", "\x5")
    Stop a takelship container running a project.
    LONGDESC
    def stop
      say ship_container_stop
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
takeltau-0.44.2 lib/takeltau/ship/project/cli.rb