[Bps-public-commit] r14461 - in Prophet/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Thu Jul 24 01:40:27 EDT 2008
Author: sartak
Date: Thu Jul 24 01:40:27 2008
New Revision: 14461
Modified:
Prophet/trunk/ (props changed)
Prophet/trunk/lib/Prophet/CLI/Command/Publish.pm
Log:
r64987 at onn: sartak | 2008-07-24 01:40:21 -0400
Allow publishing of the replica and the static html copy simultaneously
Modified: Prophet/trunk/lib/Prophet/CLI/Command/Publish.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command/Publish.pm (original)
+++ Prophet/trunk/lib/Prophet/CLI/Command/Publish.pm Thu Jul 24 01:40:27 2008
@@ -17,14 +17,19 @@
my $orig = shift;
my $self = shift;
+ # if the user specifies nothing, then publish the replica
+ $self->set_arg('replica' => 1)
+ if !$self->has_arg('html');
+
# if we have the html argument, populate the tempdir with rendered templates
if ($self->has_arg('html')) {
$self->render_templates_into($self->arg('path'));
- return;
}
# otherwise, do the normal prophet export this replica
- return $self->$orig(@_);
+ if ($self->has_arg('replica')) {
+ $self->$orig(@_);
+ }
};
# the tempdir is populated, now publish it
More information about the Bps-public-commit
mailing list