lib/ronin/ui/cli/cli.rb in ronin-1.5.0.rc2 vs lib/ronin/ui/cli/cli.rb in ronin-1.5.0
- old
+ new
@@ -92,11 +92,12 @@
#
# @api semipublic
#
def CLI.command(name)
name = name.to_s
+ path = name.tr(':','/')
- unless (command = Commands.require_const(name))
+ unless (command = Commands.require_const(path))
raise(UnknownCommand,"unable to load the command #{name.dump}",caller)
end
unless command.respond_to?(:start)
raise(UnknownCommand,"command #{name.dump} must provide a 'start' method",caller)