[Bps-public-commit] r14240 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Thu Jul 17 18:46:53 EDT 2008


Author: sartak
Date: Thu Jul 17 18:46:53 2008
New Revision: 14240

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/CLI/Command/Pull.pm
   Prophet/trunk/lib/Prophet/CLI/Command/Push.pm

Log:
 r64529 at onn:  sartak | 2008-07-17 18:46:47 -0400
 Have push and pull use the --from and --to arguments instead of shifting off @ARGV


Modified: Prophet/trunk/lib/Prophet/CLI/Command/Pull.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command/Pull.pm	(original)
+++ Prophet/trunk/lib/Prophet/CLI/Command/Pull.pm	Thu Jul 17 18:46:53 2008
@@ -5,7 +5,7 @@
 sub run {
 
     my $self         = shift;
-    my $other        = shift @ARGV;
+    my $other        = $self->arg('from');
     my $source_other = Prophet::Replica->new( { url => $other } );
     $self->app_handle->handle->import_resolutions_from_remote_replica(
         from => $source_other );

Modified: Prophet/trunk/lib/Prophet/CLI/Command/Push.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command/Push.pm	(original)
+++ Prophet/trunk/lib/Prophet/CLI/Command/Push.pm	Thu Jul 17 18:46:53 2008
@@ -6,7 +6,7 @@
     my $self = shift;
 
     my $source_me    = $self->app_handle->handle;
-    my $other        = shift @ARGV;
+    my $other        = $self->arg('to');
     my $source_other = Prophet::Replica->new( { url => $other } );
     my $resdb        = $source_me->import_resolutions_from_remote_replica(
         from => $source_other );



More information about the Bps-public-commit mailing list