class Hiera::Backend::Eyaml::Subcommands::UnknownCommand
Attributes
original_command[RW]
Public Class Methods
description()
click to toggle source
# File lib/hiera/backend/eyaml/subcommands/unknown_command.rb, line 18 def self.description "Unknown command (#{@@original_command})" end
execute()
click to toggle source
# File lib/hiera/backend/eyaml/subcommands/unknown_command.rb, line 22 def self.execute subcommands = Eyaml.subcommands puts <<~EOS Unknown subcommand#{': ' + Eyaml.subcommand if Eyaml.subcommand} Usage: eyaml <subcommand> Please use one of the following subcommands or help for more help: #{Eyaml.subcommands.sort.collect do |command| command_class = Subcommands.const_get(Utils.camelcase(command)) command unless command_class.hidden? end.compact.join(', ')} EOS end
options()
click to toggle source
# File lib/hiera/backend/eyaml/subcommands/unknown_command.rb, line 14 def self.options [] end