Sha256: 17cd5bd1de5b0196766ea0027348b51166efd55d092df6722e3c6a9436daf198

Contents?: true

Size: 752 Bytes

Versions: 21

Compression:

Stored size: 752 Bytes

Contents

# frozen_string_literal: true

# tau ship project create
module ShipProjectCreate
  # Start a takelship
  def ship_project_create(project, verb = 'Created')
    takelship = _ship_info_lib_get_takelshipinfo
    project = _ship_info_lib_get_project project, takelship
    return false unless _ship_project_start_valid_project? takelship, project

    log.debug "Dumping takelship project \"#{project}\""
    ports = _ship_ports_lib_get_ports(takelship, project)

    ship_status = _ship_container_lib_docker_privileged(
      ports,
      project,
      ship_hostname_suffix: 'dump',
      publish_ports: false
    )
    return false unless _ship_container_lib_started? ship_status

    say "#{verb} takelship project \"#{project}\"."
    true
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
takeltau-0.45.17 lib/takeltau/ship/project/create.rb
takeltau-0.45.16 lib/takeltau/ship/project/create.rb
takeltau-0.45.14 lib/takeltau/ship/project/create.rb
takeltau-0.45.13 lib/takeltau/ship/project/create.rb
takeltau-0.45.12 lib/takeltau/ship/project/create.rb
takeltau-0.45.11 lib/takeltau/ship/project/create.rb
takeltau-0.45.10 lib/takeltau/ship/project/create.rb
takeltau-0.45.9 lib/takeltau/ship/project/create.rb
takeltau-0.45.8 lib/takeltau/ship/project/create.rb
takeltau-0.45.6 lib/takeltau/ship/project/create.rb
takeltau-0.45.5 lib/takeltau/ship/project/create.rb
takeltau-0.45.4 lib/takeltau/ship/project/create.rb
takeltau-0.45.3 lib/takeltau/ship/project/create.rb
takeltau-0.45.2 lib/takeltau/ship/project/create.rb
takeltau-0.45.0 lib/takeltau/ship/project/create.rb
takeltau-0.44.42 lib/takeltau/ship/project/create.rb
takeltau-0.44.41 lib/takeltau/ship/project/create.rb
takeltau-0.44.39 lib/takeltau/ship/project/create.rb
takeltau-0.44.37 lib/takeltau/ship/project/create.rb
takeltau-0.44.36 lib/takeltau/ship/project/create.rb