Revision 9f929443
Added by Marc Dequènes over 14 years ago
- ID 9f929443bdbde5cf0534715428394d7030cb29ce
lib/cyborghood/command_runner.rb | ||
---|---|---|
if cmd.valid?
|
||
logger.info "Executing command: #{cmd.cmdline}"
|
||
begin
|
||
execute_cmd(order.user, cmd.cmdsplit, order.shared_parameters, result)
|
||
execute_cmd(order.user, cmd.cmdsplit, result)
|
||
rescue CyberError => e
|
||
result.message = tm_(e.message.capitalize + ".")
|
||
rescue
|
||
... | ... | |
|
||
private
|
||
|
||
def self.execute_cmd(user, cmdline, shared_parameters, result)
|
||
def self.execute_cmd(user, cmdline, result)
|
||
subsys = cmdline.shift
|
||
case subsys.upcase
|
||
when "DNS"
|
Also available in: Unified diff
[evol] removed useless parameter