Class: Puppet::Util::CommandLine::UnknownSubcommand Private
- Inherits:
-
NilSubcommand
- Object
- NilSubcommand
- Puppet::Util::CommandLine::UnknownSubcommand
- Defined in:
- lib/puppet/util/command_line.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize(subcommand_name, command_line) ⇒ UnknownSubcommand
constructor
private
A new instance of UnknownSubcommand.
- #run ⇒ Object private
Constructor Details
#initialize(subcommand_name, command_line) ⇒ UnknownSubcommand
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of UnknownSubcommand.
170 171 172 173 |
# File 'lib/puppet/util/command_line.rb', line 170 def initialize(subcommand_name, command_line) @subcommand_name = subcommand_name super(command_line) end |
Instance Method Details
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
175 176 177 178 |
# File 'lib/puppet/util/command_line.rb', line 175 def run puts "Error: Unknown Puppet subcommand '#{@subcommand_name}'" super end |