summaryrefslogtreecommitdiff
path: root/lib/puppet/provider
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2010-09-14 09:00:34 +1000
committerJames Turnbull <james@lovedthanlost.net>2010-09-14 09:00:34 +1000
commite572002ab6b9ce15d446ffdab19353d4da18849c (patch)
tree271d233fd8166368ca1686ef3e31dc062210b23d /lib/puppet/provider
parent295b3cb16dbcd8e2575d0fef8aef756889e13c66 (diff)
downloadpuppet-vcsrepo-e572002ab6b9ce15d446ffdab19353d4da18849c.tar.gz
puppet-vcsrepo-e572002ab6b9ce15d446ffdab19353d4da18849c.tar.bz2
Fixed bomb out with an error concerning working_copy_exists? not
being defined for svn repos Thanks to Bret S. Lambert for the patch
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r--lib/puppet/provider/vcsrepo/svn.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/puppet/provider/vcsrepo/svn.rb b/lib/puppet/provider/vcsrepo/svn.rb
index e856220..680188c 100644
--- a/lib/puppet/provider/vcsrepo/svn.rb
+++ b/lib/puppet/provider/vcsrepo/svn.rb
@@ -19,10 +19,14 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
end
end
- def exists?
+ def working_copy_exists?
File.directory?(File.join(@resource.value(:path), '.svn'))
end
+ def exists?
+ working_copy_exists?
+ end
+
def destroy
FileUtils.rm_rf(@resource.value(:path))
end
@@ -75,4 +79,4 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
svnadmin(*args)
end
-end \ No newline at end of file
+end