summaryrefslogtreecommitdiff
path: root/lib/puppet/provider
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2011-11-19 11:04:16 -0800
committerJames Turnbull <james@lovedthanlost.net>2011-11-19 11:04:16 -0800
commit6fb7998cde3ddfa6961beda5aef4caa4617daf44 (patch)
tree6bac8324886582eab71a399e03a8c3d52650a6de /lib/puppet/provider
parent7d03bfca4957649f7de4bb7bb6c6d3dcc3d194db (diff)
parenta5ee22e45732dac7b9ef461e0f8ffc6baef3cd16 (diff)
downloadpuppet-vcsrepo-6fb7998cde3ddfa6961beda5aef4caa4617daf44.tar.gz
puppet-vcsrepo-6fb7998cde3ddfa6961beda5aef4caa4617daf44.tar.bz2
Merge pull request #16 from mfournier/missing-working_copy_exists
Added missing 'working_copy_exists?' method.
Diffstat (limited to 'lib/puppet/provider')
-rw-r--r--lib/puppet/provider/vcsrepo/bzr.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/bzr.rb b/lib/puppet/provider/vcsrepo/bzr.rb
index 35226d1..3a93e35 100644
--- a/lib/puppet/provider/vcsrepo/bzr.rb
+++ b/lib/puppet/provider/vcsrepo/bzr.rb
@@ -15,10 +15,14 @@ Puppet::Type.type(:vcsrepo).provide(:bzr, :parent => Puppet::Provider::Vcsrepo)
end
end
- def exists?
+ def working_copy_exists?
File.directory?(File.join(@resource.value(:path), '.bzr'))
end
+ def exists?
+ working_copy_exists?
+ end
+
def destroy
FileUtils.rm_rf(@resource.value(:path))
end