HomePhorge

(#6820) Fix File class lookup in the file type for Ruby 1.9
36a5665f3e0aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#6820) Fix File class lookup in the file type for Ruby 1.9

Was getting the following error when we simply called File.dirname

err: Got an uncaught exception of type NoMethodError: undefined method
`dirname' for Puppet::Type::File:Class

The constant lookup has changed in Ruby 1.9 to look at local scopes
first, so we need to make it clearer that File is the Ruby File class
and not something scoped in Puppet.

Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>

Details

Provenance
Matt Robinson <matt@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8c32db76f681: (#6820) Fix nagios parser to use proper hash syntax for Ruby 1.9
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Robinson <matt@puppetlabs.com> committed rPU36a5665f3e0a: (#6820) Fix File class lookup in the file type for Ruby 1.9 (authored by Matt Robinson <matt@puppetlabs.com>).Mar 23 2011, 9:10 PM