Method: Puppet::Application::Device#parse_args
- Defined in:
- lib/puppet/application/device.rb
#parse_args(args) ⇒ Object
389 390 391 392 393 394 395 |
# File 'lib/puppet/application/device.rb', line 389 def parse_args(args) type = args.shift or raise _("You must specify the type to display") Puppet::Type.type(type) or raise _("Could not find type %{type}") % { type: type } name = args.shift [type, name] end |