From a5ee22e45732dac7b9ef461e0f8ffc6baef3cd16 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Sat, 19 Nov 2011 18:16:40 +0100 Subject: Added missing 'working_copy_exists?' method. --- lib/puppet/provider/vcsrepo/bzr.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3