Added missing 'working_copy_exists?' method.
authorMarc Fournier <marc.fournier@camptocamp.com>
Sat, 19 Nov 2011 17:16:40 +0000 (18:16 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Sat, 19 Nov 2011 17:16:40 +0000 (18:16 +0100)
lib/puppet/provider/vcsrepo/bzr.rb

index 35226d1..3a93e35 100644 (file)
@@ -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