diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet.rb | 6 | ||||
| -rw-r--r-- | lib/puppet/provider.rb | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb index 527061d9d..740ba1eb2 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -1,3 +1,9 @@ +# Try to load rubygems. Hey rubygems, I hate you. +begin + require 'rubygems' +rescue LoadError +end + # see the bottom of the file for further inclusions require 'singleton' require 'facter' diff --git a/lib/puppet/provider.rb b/lib/puppet/provider.rb index 612d8adc6..7ef0bdce9 100644 --- a/lib/puppet/provider.rb +++ b/lib/puppet/provider.rb @@ -16,7 +16,7 @@ class Puppet::Provider # The source parameter exists so that providers using the same # source can specify this, so reading doesn't attempt to read the # same package multiple times. - attr_accessor :source + attr_writer :source # LAK 2007-05-09: Keep the model stuff around for backward compatibility attr_reader :model |
