Issue #11281 has been updated by Josh Cooper. Status changed from Investigating to Accepted
Hi Remi, so this line is causing problems: <pre> 141: result.read(file) if File.file?(file) </pre> It's actually trying to call `Puppet::Type::File.file?` which is the wrong `File` class. There are some other places that have the same problem. Can you try replacing any unqualified reference to `File` with `::File`, e.g. `::File.file?`, `::File.stat`, `::File.chmod`, etc. And also change references like `File::directory?` to `::File.directory?` Even better if you could get this working, sign our CLA and submit a pull request! ---------------------------------------- Bug #11281: undefined method `file?' for Puppet::Type::File:Class https://projects.puppetlabs.com/issues/11281 Author: Remi Broemeling Status: Accepted Priority: Normal Assignee: Category: Target version: 2.7.x Affected Puppet version: 2.7.6 Keywords: Branch: I am attempting to run puppet (v2.7.6) and facter (v1.6.1) on Ruby 1.9.2p290, and I am unable to execute against my manifests. The exact same manifests are working on Ruby Enterprise Edition 1.8.7 (2011-02-18 patchlevel 334). The error that I am receiving is as follows: `** [out :: rubytest...] err: /Stage[main]//Yumrepo[yum_puppet_repo]: Could not evaluate: undefined method 'file?' for Puppet::Type::File:Class` The yum_puppet_repo stanza looks like this: `exec { "yum_rebuild_cache": command => "/usr/bin/yum makecache", logoutput => false, refreshonly => true }` `yumrepo { "yum_puppet_repo": baseurl => "file://${puppet_root}/../RPM/RPMS", descr => "Local package repository.", enabled => 1, gpgcheck => 0, notify => Exec["yum_rebuild_cache"] }` I believe this to be a bug in puppet (and not in my manifest) wholly because the same puppet configuration works properly on Ruby Enterprise Edition. Is there further information that I can give to help debug this issue? -- 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.
