[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. 0e230cc996a4d7b1d7d9c27d88b7b54f5bd14846
jesse
jesse at bestpractical.com
Tue Jan 27 21:08:18 EST 2009
The branch, master has been updated
via 0e230cc996a4d7b1d7d9c27d88b7b54f5bd14846 (commit)
from 781c9447798e85a03f5ce618052100a22ee07a62 (commit)
Summary of changes:
lib/Prophet/CLI/Command/Publish.pm | 15 ++++++++++-----
lib/Prophet/ReplicaExporter.pm | 3 +++
2 files changed, 13 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit 0e230cc996a4d7b1d7d9c27d88b7b54f5bd14846
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Jan 27 21:08:03 2009 -0500
Better logging of publish over rsync
diff --git a/lib/Prophet/CLI/Command/Publish.pm b/lib/Prophet/CLI/Command/Publish.pm
index c5342ce..e012a79 100644
--- a/lib/Prophet/CLI/Command/Publish.pm
+++ b/lib/Prophet/CLI/Command/Publish.pm
@@ -31,11 +31,15 @@ around run => sub {
$export_replica = 1 if !$export_html;
# if we have the html argument, populate the tempdir with rendered templates
- $self->export_html() if ($export_html);
-
+ if ($export_html) {
+ print "Exporting a static HTML version of this replia\n";
+ $self->export_html()
+ }
# otherwise, do the normal prophet export this replica
- $self->$orig(@_) if ($export_replica);
-
+ if ($export_replica) {
+ print "Exporting a clone of this replia\n";
+ $self->$orig(@_)
+ }
};
# the tempdir is populated, now publish it
@@ -44,12 +48,13 @@ after run => sub {
my $from = $self->arg('path');
my $to = $self->arg('to');
+ print "Publishing the exported clone of the replica to $to with rsync\n";
$self->publish_dir(
from => $from,
to => $to,
);
- print "Publish complete.\n";
+ print "Publication complete.\n";
};
sub export_html {
diff --git a/lib/Prophet/ReplicaExporter.pm b/lib/Prophet/ReplicaExporter.pm
index 828acde..d49d3fb 100644
--- a/lib/Prophet/ReplicaExporter.pm
+++ b/lib/Prophet/ReplicaExporter.pm
@@ -77,7 +77,9 @@ sub export {
my $self = shift;
$self->init_export_metadata();
+ print " Exporting records...\n";
$self->export_all_records();
+ print " Exporting changesets...\n";
$self->export_changesets();
unless ($self->source_replica->is_resdb) {
@@ -87,6 +89,7 @@ sub export {
app_handle => $self->app_handle
);
+ print "Exporting resolution database\n";
$resolutions->export();
}
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list