Method: Rex::Ui::Text::DispatcherShell#run_command
- Defined in:
- lib/rex/ui/text/dispatcher_shell.rb
#run_command(dispatcher, method, arguments) ⇒ Object
Runs the supplied command on the given dispatcher.
421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/rex/ui/text/dispatcher_shell.rb', line 421 def run_command(dispatcher, method, arguments) self.busy = true if(blocked_command?(method)) print_error("The #{method} command has been disabled.") else dispatcher.send('cmd_' + method, *arguments) end ensure self.busy = false end |