lib/ppl/application/router.rb in ppl-1.15.0 vs lib/ppl/application/router.rb in ppl-1.15.1

- old
+ new

@@ -1,22 +1,22 @@ class Ppl::Application::Router attr_accessor :aliases attr_accessor :default - attr_accessor :execute_command + attr_accessor :external_command def initialize(command_suite) @command_suite = command_suite @aliases = {} end def route(argument) command = @command_suite.find_command(argument) if command.nil? && @aliases.has_key?(argument) if is_bang_alias?(argument) - command = create_execute_command(argument) + command = create_external_command(argument) else command = @command_suite.find_command(@aliases[argument]) end end if command.nil? && !@default.nil? @@ -30,13 +30,13 @@ def is_bang_alias?(key) @aliases[key].match(/^!/) end - def create_execute_command(key) - @execute_command.name = key - @execute_command.command = @aliases[key][1..-1] - @execute_command + def create_external_command(key) + @external_command.name = key + @external_command.command = @aliases[key][1..-1] + @external_command end end