diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-12 20:11:35 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-12 20:11:35 +0000 |
| commit | 4abbdc13f4a1762eb5d848763dde1780f6408de8 (patch) | |
| tree | 32c95243992a42465a02ae3194dd98cfd4baea89 /lib/puppet/parser/interpreter.rb | |
| parent | 8fee5383eb214b7e4aa38b0438f23d2a326fb103 (diff) | |
| download | puppet-4abbdc13f4a1762eb5d848763dde1780f6408de8.tar.gz puppet-4abbdc13f4a1762eb5d848763dde1780f6408de8.tar.xz puppet-4abbdc13f4a1762eb5d848763dde1780f6408de8.zip | |
Working some on the export/collect problem. It actually works now, but there are not yet sufficient tests for it, so I will leave the bug open until we have got the new work in place. I also added a "rails" feature, so I do not have to keep testing whether ActiveRecord is defined.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1911 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/interpreter.rb')
| -rw-r--r-- | lib/puppet/parser/interpreter.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb index 4480a123a..d2ec1b92c 100644 --- a/lib/puppet/parser/interpreter.rb +++ b/lib/puppet/parser/interpreter.rb @@ -4,6 +4,7 @@ require 'puppet' require 'timeout' +require 'puppet/rails' require 'puppet/parser/parser' require 'puppet/parser/scope' @@ -142,7 +143,7 @@ class Puppet::Parser::Interpreter scope.name = "top" scope.type = "main" - scope.host = facts["hostname"] || Facter.value("hostname") + scope.host = client classes = @classes.dup @@ -358,7 +359,7 @@ class Puppet::Parser::Interpreter end # The class won't always be defined during testing. - if Puppet[:storeconfigs] and defined? ActiveRecord::Base + if Puppet[:storeconfigs] and Puppet.features.rails? Puppet::Rails.init end |
