summaryrefslogtreecommitdiff
path: root/libpiny/lib/Piny/Repo.pm
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-11 19:32:00 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2011-05-11 19:32:00 -0700
commit8629b2227631419ef53b32303c77779a38ebb4f1 (patch)
tree28fbbaddca2fc9d3c0456e14f8aaaef16a7a961d /libpiny/lib/Piny/Repo.pm
parent954d66d99779c71bf146c8c5fe5ac48494cc739d (diff)
downloadpiny-code-8629b2227631419ef53b32303c77779a38ebb4f1.tar.gz
piny-code-8629b2227631419ef53b32303c77779a38ebb4f1.zip
Adding piny_ikiwiki support for Piny::Repo->create and ->rebuild
Diffstat (limited to 'libpiny/lib/Piny/Repo.pm')
-rw-r--r--libpiny/lib/Piny/Repo.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm
index 0d2cb64..0d2496f 100644
--- a/libpiny/lib/Piny/Repo.pm
+++ b/libpiny/lib/Piny/Repo.pm
@@ -212,8 +212,12 @@ sub rebuild {
my ( $s ) = @_;
$s->rebuild_git;
+
$s->destroy_ikiwiki;
- $s->rebuild_ikiwiki;
+ if ( $s->config->piny_ikiwiki =~ /^(1|true)$/ ) {
+ $s->rebuild_ikiwiki;
+ };
+
};
sub rebuild_git {
@@ -425,7 +429,10 @@ sub create {
$repo->description( $description );
$repo->rebuild_git;
- $repo->rebuild_ikiwiki;
+
+ if ( $repo->config->piny_ikiwiki =~ /^(1|true)$/ ) {
+ $repo->rebuild_ikiwiki;
+ };
return $repo;
};