[Bps-public-commit] Prophet branch, master, updated. 425a1f725838f8846d41cd0ba3810478528f489d

Alex M Vandiver alexmv at bestpractical.com
Thu May 21 14:11:41 EDT 2009


The branch, master has been updated
       via  425a1f725838f8846d41cd0ba3810478528f489d (commit)
       via  5fad876c4995eb21eb39103c0c831488211c9cef (commit)
      from  007f1221f33b320a3473e73e247e9715af12f227 (commit)

Summary of changes:
 lib/Prophet/CLI/Command/Push.pm |   19 -------------------
 lib/Prophet/CLI/Dispatcher.pm   |    2 +-
 2 files changed, 1 insertions(+), 20 deletions(-)
 delete mode 100644 lib/Prophet/CLI/Command/Push.pm

- Log -----------------------------------------------------------------
commit 5fad876c4995eb21eb39103c0c831488211c9cef
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Thu May 21 14:06:09 2009 -0400

    Use the replica's actual URL for push, not some constructed frankenstein

diff --git a/lib/Prophet/CLI/Dispatcher.pm b/lib/Prophet/CLI/Dispatcher.pm
index 0d93c6b..d779008 100644
--- a/lib/Prophet/CLI/Dispatcher.pm
+++ b/lib/Prophet/CLI/Dispatcher.pm
@@ -69,7 +69,7 @@ on push => sub {
 
     die "Please specify a --to.\n" if !$self->context->has_arg('to');
 
-    $self->context->set_arg(from => $self->cli->app_handle->default_replica_type.":file://".$self->cli->handle->fs_root);
+    $self->context->set_arg(from => $self->cli->handle->url);
     $self->context->set_arg(db_uuid => $self->cli->handle->db_uuid);
     run('merge', $self, @_);
 };

commit 425a1f725838f8846d41cd0ba3810478528f489d
Author: Alex Vandiver <alexmv at mit.edu>
Date:   Thu May 21 14:11:06 2009 -0400

    Push is managed by the dispatcher

diff --git a/lib/Prophet/CLI/Command/Push.pm b/lib/Prophet/CLI/Command/Push.pm
deleted file mode 100644
index 34f39a1..0000000
--- a/lib/Prophet/CLI/Command/Push.pm
+++ /dev/null
@@ -1,19 +0,0 @@
-package Prophet::CLI::Command::Push;
-use Any::Moose;
-extends 'Prophet::CLI::Command::Merge';
-
-sub run {
-    my $self = shift;
-
-    die "Please specify a --to.\n" if !$self->has_arg('to');
-
-    $self->set_arg(from => $self->app_handle->default_replica_type.":file://".$self->handle->fs_root);
-    $self->set_arg(db_uuid => $self->handle->db_uuid);
-    $self->SUPER::run(@_);
-}
-
-__PACKAGE__->meta->make_immutable;
-no Any::Moose;
-
-1;
-

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list