Class: Elasticshell::Commands::Unknown
Instance Attribute Summary
#input, #shell
Class Method Summary
collapse
Instance Method Summary
collapse
#be_connected!, #initialize
Class Method Details
.matches?(input) ⇒ Boolean
5
6
7
|
# File 'lib/elasticshell/commands/unknown.rb', line 5
def self.matches? input
true
end
|
Instance Method Details
#evaluate! ⇒ Object
9
10
11
|
# File 'lib/elasticshell/commands/unknown.rb', line 9
def evaluate!
raise ArgumentError.new("Invalid command: '#{shell.input}' for scope '#{shell.scope.path}'. Try typing 'help' for a list of available commands.")
end
|