class Enviera::Subcommands::UnknownCommand

Attributes

original_command[RW]

Public Class Methods

description() click to toggle source
# File lib/enviera/subcommands/unknown_command.rb, line 18
def self.description
  "Unknown command (#{@@original_command})"
end
execute() click to toggle source
# File lib/enviera/subcommands/unknown_command.rb, line 22
      def self.execute
        subcommands = Enviera.subcommands
        puts <<-EOS
Unknown subcommand#{ ": " + Enviera.subcommand if Enviera.subcommand }
Usage: enviera <subcommand>
Please use one of the following subcommands or help for more help:
  #{Enviera.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/enviera/subcommands/unknown_command.rb, line 35
def self.hidden?
  true
end
options() click to toggle source
# File lib/enviera/subcommands/unknown_command.rb, line 14
def self.options
  []
end