Sha256: 4633d5d2caf98da1213d9e205885bc1f552e865eb8f3a0f795363465d8a0b13a
Contents?: true
Size: 790 Bytes
Versions: 2
Compression:
Stored size: 790 Bytes
Contents
require 'yaml' require_relative 'common' require_relative 'docker_helper' module Kontena::Cli::Apps class BuildCommand < Clamp::Command include Kontena::Cli::Common include Common include DockerHelper option ['-p', '--project-name'], 'NAME', 'Specify an alternate project name (default: directory name)' option ['-f', '--file'], 'FILE', 'Specify an alternate Kontena compose file', attribute_name: :filename, default: 'kontena.yml' parameter "[SERVICE] ...", "Services to start" attr_reader :services, :service_prefix def execute require_config_file(filename) @service_prefix = project_name || current_dir @services = load_services(filename, service_list, service_prefix) process_docker_images(services, true) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kontena-cli-0.9.3 | lib/kontena/cli/apps/build_command.rb |
kontena-cli-0.9.2 | lib/kontena/cli/apps/build_command.rb |