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

sartak at bestpractical.com sartak at bestpractical.com
Mon Jul 28 12:56:33 EDT 2008


Author: sartak
Date: Mon Jul 28 12:56:21 2008
New Revision: 14581

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

Log:
 r65326 at onn:  sartak | 2008-07-28 12:55:29 -0400
 Use "before" instead of explicit override/super


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	Mon Jul 28 12:56:21 2008
@@ -2,15 +2,13 @@
 use Moose;
 extends 'Prophet::CLI::Command::Merge';
 
-override run => sub {
+before run => sub {
     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->app_handle->handle->fs_root);
     $self->set_arg(db_uuid => $self->app_handle->handle->db_uuid);
-
-    super();
 };
 
 __PACKAGE__->meta->make_immutable;



More information about the Bps-public-commit mailing list