Fixed bomb out with an error concerning working_copy_exists? not
authorJames Turnbull <james@lovedthanlost.net>
Mon, 13 Sep 2010 23:00:34 +0000 (09:00 +1000)
committerJames Turnbull <james@lovedthanlost.net>
Mon, 13 Sep 2010 23:00:34 +0000 (09:00 +1000)
being defined for svn repos

Thanks to Bret S. Lambert for the patch

lib/puppet/provider/vcsrepo/svn.rb

index e856220..680188c 100644 (file)
@@ -19,10 +19,14 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
     end
   end
 
-  def exists?
+  def working_copy_exists?
     File.directory?(File.join(@resource.value(:path), '.svn'))
   end
 
+  def exists?
+    working_copy_exists?
+  end
+
   def destroy
     FileUtils.rm_rf(@resource.value(:path))
   end
@@ -75,4 +79,4 @@ Puppet::Type.type(:vcsrepo).provide(:svn, :parent => Puppet::Provider::Vcsrepo)
     svnadmin(*args)
   end
 
-end
\ No newline at end of file
+end