Sha256: f14c8e5ac5a980a658d5ec950f73a62241a3ef4735a99cf517f67457f59f9295
Contents?: true
Size: 804 Bytes
Versions: 2
Compression:
Stored size: 804 Bytes
Contents
# frozen_string_literal: true module Neptuno module Docker # Build docker container for Neptuno project class Up < Neptuno::CLI::Base desc 'Docker: bring up docker containers for current project' option :all, type: :boolean, default: false, desc: 'Run on all services' option :wait, type: :boolean, default: true, desc: 'Wait for services to be healthy' argument :services, type: :array, required: false, desc: 'Optional list of services' def call(services: [], **options) command_services_to('come up', all: options.fetch(:all), services_as_args: services) do |services, _project| make_service_files(services) system("cd #{neptuno_path} && docker compose up -d --wait #{services.join(' ')}") end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
neptuno-1.4.10 | lib/neptuno/docker/up.rb |
neptuno-1.2.1 | lib/neptuno/docker/up.rb |