[Bps-public-commit] r16054 - in Prophet/branches/dispatcher: lib/Prophet

sartak at bestpractical.com sartak at bestpractical.com
Thu Sep 25 14:33:29 EDT 2008


Author: sartak
Date: Thu Sep 25 14:33:29 2008
New Revision: 16054

Modified:
   Prophet/branches/dispatcher/   (props changed)
   Prophet/branches/dispatcher/lib/Prophet/CLI.pm

Log:
 r72447 at onn:  sartak | 2008-09-25 14:20:11 -0400
 Rename the method to dispatcher_class


Modified: Prophet/branches/dispatcher/lib/Prophet/CLI.pm
==============================================================================
--- Prophet/branches/dispatcher/lib/Prophet/CLI.pm	(original)
+++ Prophet/branches/dispatcher/lib/Prophet/CLI.pm	Thu Sep 25 14:33:29 2008
@@ -57,14 +57,14 @@
 
 =cut
 
-=head2 dispatcher -> Class
+=head2 dispatcher_class -> Class
 
-Returns the dispatcher used to dispatch command lines. You'll want to override
-this in your subclass.
+Returns the dispatcher class used to dispatch command lines. You'll want to
+override this in your subclass.
 
 =cut
 
-sub dispatcher { "Prophet::CLI::Dispatcher" }
+sub dispatcher_class { "Prophet::CLI::Dispatcher" }
 
 =head2 _get_cmd_obj
 
@@ -94,7 +94,7 @@
         dispatching_on => $self->context->primary_commands,
     );
 
-    $self->dispatcher->run($command, %dispatcher_args);
+    $self->dispatcher_class->run($command, %dispatcher_args);
     die "I don't know how to parse '$command'. Are you sure that's a valid command?\n" unless $class;
 
     my %constructor_args = (



More information about the Bps-public-commit mailing list