diff options
author | James Turnbull <james@lovedthanlost.net> | 2011-11-12 09:07:07 -0800 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-11-12 09:07:07 -0800 |
commit | 7d03bfca4957649f7de4bb7bb6c6d3dcc3d194db (patch) | |
tree | e769b777f67f8bfe7f2f78b8e0d53c807d2b8767 /lib/puppet | |
parent | df6a9b33cb8e54cbc798ae32c70f0785bb87b89e (diff) | |
parent | b5110938f5cb6736a13bbecbef4fbcaf6837ce56 (diff) | |
download | puppet-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.rb | 4 |
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 |