class KubeDeployTools::Push::Optparser::PushOptions
Attributes
images[RW]
local_prefix[RW]
manifest_file[RW]
registries[RW]
tag[RW]
Public Class Methods
new()
click to toggle source
# File lib/kube_deploy_tools/push/options.rb, line 11 def initialize self.local_prefix = 'local-registry' self.registries = Set.new self.tag = KubeDeployTools::tag_from_local_env end
Public Instance Methods
define_options(parser)
click to toggle source
# File lib/kube_deploy_tools/push/options.rb, line 17 def define_options(parser) parser.on('-lPREFIX', '--local-prefix PREFIX', 'The local Docker prefix to strip to get to the base image name') do |f| self.local_prefix = f end parser.on('-tTAG', '--tag TAG', 'Tag Docker images with TAG') do |t| self.tag = t end parser.on('-mMANIFEST', '--manifest MANIFEST', 'The configuration MANIFEST to render deploys with.') do |f| self.manifest_file = f end parser.on('-rPREFIX', '--registry REGISTRY', 'The remote Docker registry to push to (can specify multiple times). If not specified, then will push to all registries in config.') do |r| self.registries.add r end end