Sha256: dd07a629bd9586938fcafd04ba531fd5b2f1e640771f5ef52154066b8eace6b6
Contents?: true
Size: 804 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neptuno-1.2.0 | lib/neptuno/docker/up.rb |