[Bps-public-commit] r13801 - in sd/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Fri Jul 4 07:06:19 EDT 2008


Author: sartak
Date: Fri Jul  4 07:06:18 2008
New Revision: 13801

Modified:
   sd/trunk/   (props changed)
   sd/trunk/bin/sd

Log:
 r63712 at onn:  sartak | 2008-07-04 07:06:05 -0400
 Move run_one_command to the bottom of bin/sd, after all of Moose's runtime sugar is run


Modified: sd/trunk/bin/sd
==============================================================================
--- sd/trunk/bin/sd	(original)
+++ sd/trunk/bin/sd	Fri Jul  4 07:06:18 2008
@@ -6,9 +6,6 @@
 
 use Prophet::CLI;
 use App::SD::Model::Ticket;
-my $cli = Prophet::CLI->new( { app_class => 'App::SD' } );
-$cli->run_one_command;
-
 
 package App::SD::CLI::Command;
 use Moose::Role;
@@ -226,8 +223,14 @@
     local $ENV{PROPHET_RESOLVER} = 'Prompt';
     bless $self, 'App::SD::CLI::Command::Merge';
     $self->args({  from => $self->args->{'from'}, 
-                   to => $self->cli->app_handle->default_replica_type.":file://".$cli->app_handle->handle->fs_root });
+                   to => $self->cli->app_handle->default_replica_type.":file://".$self->cli->app_handle->handle->fs_root });
     $self->run; 
 }
 
+package main;
+
+my $cli = Prophet::CLI->new( { app_class => 'App::SD' } );
+$cli->run_one_command;
+
+
 1;



More information about the Bps-public-commit mailing list