Sha256: aae27533febb15d52472b10df0cf4d68ab538ff96d744677822c349003fc3f94

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 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 ShipInfoLib
    include ShipProjectList
    include ShipProjectStart

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

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
takeltau-0.43.16 lib/takeltau/ship/project/cli.rb
takeltau-0.43.15 lib/takeltau/ship/project/cli.rb
takeltau-0.43.14 lib/takeltau/ship/project/cli.rb
takeltau-0.43.10 lib/takeltau/ship/project/cli.rb
takeltau-0.43.6 lib/takeltau/ship/project/cli.rb
takeltau-0.43.4 lib/takeltau/ship/project/cli.rb
takeltau-0.43.2 lib/takeltau/ship/project/cli.rb