summaryrefslogtreecommitdiff
path: root/lib
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
parent295b3cb16dbcd8e2575d0fef8aef756889e13c66 (diff)
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')
-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