diff options
author | James Turnbull <james@lovedthanlost.net> | 2010-09-14 09:00:34 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-09-14 09:00:34 +1000 |
commit | e572002ab6b9ce15d446ffdab19353d4da18849c (patch) | |
tree | 271d233fd8166368ca1686ef3e31dc062210b23d /lib/puppet/provider | |
parent | 295b3cb16dbcd8e2575d0fef8aef756889e13c66 (diff) | |
download | puppet-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.rb | 8 |
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 |