summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2011-11-12 09:07:07 -0800
committerJames Turnbull <james@lovedthanlost.net>2011-11-12 09:07:07 -0800
commit7d03bfca4957649f7de4bb7bb6c6d3dcc3d194db (patch)
treee769b777f67f8bfe7f2f78b8e0d53c807d2b8767 /lib/puppet
parentdf6a9b33cb8e54cbc798ae32c70f0785bb87b89e (diff)
parentb5110938f5cb6736a13bbecbef4fbcaf6837ce56 (diff)
downloadpuppet-vcsrepo-7d03bfca4957649f7de4bb7bb6c6d3dcc3d194db.tar.gz
puppet-vcsrepo-7d03bfca4957649f7de4bb7bb6c6d3dcc3d194db.tar.bz2
Merge pull request #12 from webfactory/fix_9083
Fix (#9083) as suggested by the original bug reporter.
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/provider/vcsrepo/cvs.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/provider/vcsrepo/cvs.rb b/lib/puppet/provider/vcsrepo/cvs.rb
index 1e5ce80..d0ee773 100644
--- a/lib/puppet/provider/vcsrepo/cvs.rb
+++ b/lib/puppet/provider/vcsrepo/cvs.rb
@@ -24,6 +24,10 @@ Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo)
File.directory?(directory)
end
+ def working_copy_exists?
+ File.directory?(File.join(@resource.value(:path), 'CVS'))
+ end
+
def destroy
FileUtils.rm_rf(@resource.value(:path))
end