Sha256: 4c39afd144c18c47ebbff0e678b0581029809f9b31e9fe4b67a41ce3248f2aab
Contents?: true
Size: 686 Bytes
Versions: 4
Compression:
Stored size: 686 Bytes
Contents
# frozen_string_literal: true module Neptuno module Docker # Build docker container for Neptuno project class Build < Neptuno::CLI::Base desc 'Docker: Build docker containers for project' option :all, type: :boolean, default: false, desc: 'Run on all services' argument :services, type: :array, required: false, desc: 'Optional list of services' def call(services: [], **options) command_services_to('build', all: options.fetch(:all), services_as_args: services) do |services| make_service_files(services) system("cd #{neptuno_path} && docker compose build #{services.join(' ')}") end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
neptuno-1.0.10 | lib/neptuno/docker/build.rb |
neptuno-1.0.9 | lib/neptuno/docker/build.rb |
neptuno-1.0.8 | lib/neptuno/docker/build.rb |
neptuno-1.0.7 | lib/neptuno/docker/build.rb |