[Bps-public-commit] r17517 - Prophet/trunk/lib/Prophet

jesse at bestpractical.com jesse at bestpractical.com
Thu Jan 1 21:19:25 EST 2009


Author: jesse
Date: Thu Jan  1 21:19:25 2009
New Revision: 17517

Modified:
   Prophet/trunk/lib/Prophet/Replica.pm

Log:
* slim down replica.pm by moving export_to out


Modified: Prophet/trunk/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica.pm	(original)
+++ Prophet/trunk/lib/Prophet/Replica.pm	Thu Jan  1 21:19:25 2009
@@ -542,30 +542,6 @@
     return \@results;
 }
 
-=head3 export_to { path => $PATH }
-
-This routine will export a copy of this prophet database replica to a flat file
-on disk suitable for publishing via HTTP or over a local filesystem for other
-Prophet replicas to clone or incorporate changes from.
-
-See also C<Prophet::ReplicaExporter>.
-
-=cut
-
-sub export_to {
-    my $self = shift;
-    my %args = validate( @_, { path => 1, } );
-    require Prophet::ReplicaExporter;
-
-    my $exporter = Prophet::ReplicaExporter->new(
-        {   target_path    =>  $args{'path'},
-            source_replica => $self,
-            app_handle     => $self->app_handle
-        }
-    );
-    $exporter->export();
-}
-
 =head2 methods to be implemented by a replica backend
 
 =head3 uuid



More information about the Bps-public-commit mailing list