diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2010-02-17 14:05:06 -0800 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2010-02-17 14:30:11 -0800 |
| commit | c6f02f2ee0c9b14f1106b5f6fa8e61cd92cf6f06 (patch) | |
| tree | e89b7c79fe223fcd37f16d237cc3e3504fe57bf0 /lib/puppet/node | |
| parent | 27322e5460130b854835aef56ab7076bab83a00b (diff) | |
| download | puppet-c6f02f2ee0c9b14f1106b5f6fa8e61cd92cf6f06.tar.gz puppet-c6f02f2ee0c9b14f1106b5f6fa8e61cd92cf6f06.tar.xz puppet-c6f02f2ee0c9b14f1106b5f6fa8e61cd92cf6f06.zip | |
Fix #3167 Duplicate constant warnings in dpkg.rb
There's a limitation in Ruby 1.8.x that makes constants behave
differently than developers seem to expect:
Constants defined inside a do/end block do not get inserted into the
namespace of 'self', they instead go into the toplevel (Object)
namespace.
These providers exhibit bugs since they use constants with the same
name in the same namespace.
Other providers and other dynamically generated classes using constants
without an explicit namespace should be considered to have a code smell.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'lib/puppet/node')
0 files changed, 0 insertions, 0 deletions
