Class: KubeDeployTools::Push::Optparser

Inherits:
Object
  • Object
show all
Defined in:
lib/kube_deploy_tools/push/options.rb

Defined Under Namespace

Classes: PushOptions

Instance Method Summary collapse

Instance Method Details

#parse(args) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/kube_deploy_tools/push/options.rb', line 37

def parse(args)
  @options = PushOptions.new
  OptionParser.new do |parser|
    @options.define_options(parser)
    parser.parse!(args)
  end
  @options
end