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 20
def self.description
  "Unknown command (#{@@original_command})"
end
execute() click to toggle source
# File lib/hiera/backend/eyaml/subcommands/unknown_command.rb, line 24
          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 {|command|
  command_class = Subcommands.const_get(Utils.camelcase command)
  command unless command_class.hidden?
}.compact.join(", ")}
EOS
          end
hidden?() click to toggle source
# File lib/hiera/backend/eyaml/subcommands/unknown_command.rb, line 39
def self.hidden?
  true
end
options() click to toggle source
# File lib/hiera/backend/eyaml/subcommands/unknown_command.rb, line 16
def self.options
  []
end