diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-05-11 19:32:00 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-05-11 19:32:00 -0700 |
commit | 8629b2227631419ef53b32303c77779a38ebb4f1 (patch) | |
tree | 28fbbaddca2fc9d3c0456e14f8aaaef16a7a961d | |
parent | 954d66d99779c71bf146c8c5fe5ac48494cc739d (diff) | |
download | piny-code-8629b2227631419ef53b32303c77779a38ebb4f1.tar.gz piny-code-8629b2227631419ef53b32303c77779a38ebb4f1.zip |
Adding piny_ikiwiki support for Piny::Repo->create and ->rebuild
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 11 |
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; }; |