[Pkg-puppet-devel] Bug#680606: "class variable access from toplevel" warnings in puppet

Sergio Gelato Sergio.Gelato at astro.su.se
Mon Jul 9 20:12:25 UTC 2012


The other half of the bug is covered by
	http://projects.puppetlabs.com/issues/8974

Incidentally, I got similar warnings from other parts of the code:
/usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:26: warning: class variable access from toplevel
/usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:28: warning: class variable access from toplevel
/usr/lib/ruby/vendor_ruby/puppet/provider/package/apt.rb:36: warning: class variable access from toplevel

The methods class_variable_get and class_variable_set are private instance
methods in ruby 1.8, so one may need to use self.class.send for portability.





More information about the Pkg-puppet-devel mailing list