class KubeDeployTools::Publish::Optparser::Options

Attributes

manifest_file[RW]
output_path[RW]

Public Class Methods

new() click to toggle source
# File lib/kube_deploy_tools/publish/options.rb, line 8
def initialize
  self.output_path = File.join('build', 'kubernetes')
end

Public Instance Methods

define_options(parser) click to toggle source
# File lib/kube_deploy_tools/publish/options.rb, line 12
def define_options(parser)
  parser.on('-mMANIFEST', '--manifest MANIFEST', 'The configuration MANIFEST to render deploys with.') do |f|
    self.manifest_file = f
  end

  parser.on('-oPATH', '--output-path PATH', 'Path where rendered manifests are written.') do |p|
    self.output_path = p
  end

  parser.on('-')
end