Issue #9083 has been updated by James Turnbull.

Category set to vcsrepo
Status changed from Unreviewed to Accepted
Assignee set to Spencer Krum


----------------------------------------
Bug #9083: Puppet-vcsrepo fails on cvs with undefined method 
`working_copy_exists?'
https://projects.puppetlabs.com/issues/9083

Author: Spencer Krum
Status: Accepted
Priority: Normal
Assignee: Spencer Krum
Category: vcsrepo
Target version: 
Keywords: 
Branch: 


Running a manifest, even the examples, all fail with undefined method 
`working_copy_exists?'

Manifests to puppet apply are in the examples directory. This is for CVS
<pre>
puppet apply remote.pp
warning: Found multiple default providers for vcsrepo: git, svn, cvs, hg; using 
git
err: /Stage[main]//Vcsrepo[/tmp/vcstest-cvs-workspace-remote]: Could not 
evaluate: undefined method `working_copy_exists?' for 
#<Puppet::Type::Vcsrepo::ProviderCvs:0x102a62068>
notice: Finished catalog run in 0.04 seconds
</pre>

You can work around this by adding a working_copy_exists?

<pre>
  def working_copy_exists?
    File.directory?(File.join(@resource.value(:path), 'CVS'))
  end
</pre>

Then the output is:

<pre>
warning: Found multiple default providers for vcsrepo: git, svn, cvs, hg; using 
git
notice: /Stage[main]//Vcsrepo[/tmp/vcstest-git-clone]/ensure: created
notice: Finished catalog run in 5.04 seconds
</pre>

And the WEIRD thing is that it correctly gets the repository, but claims to be 
using git.




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to