Sha256: 52f6aa9fe482de86dde8d2c5646e80d347cea7e00e48de06e6a6c9f9427561a8

Contents?: true

Size: 647 Bytes

Versions: 6

Compression:

Stored size: 647 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|
          system("cd #{neptuno_path} && docker compose build #{services.join(' ')}")
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
neptuno-1.0.6 lib/neptuno/docker/build.rb
neptuno-1.0.5 lib/neptuno/docker/build.rb
neptuno-1.0.3 lib/neptuno/docker/build.rb
neptuno-1.0.2 lib/neptuno/docker/build.rb
neptuno-1.0.1 lib/neptuno/docker/build.rb
neptuno-1.0.0 lib/neptuno/docker/build.rb