diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-11 16:12:38 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-11 16:12:38 +0000 |
commit | de0d1ddf13a8486ee6fe253e8c5a242aeca38c6a (patch) | |
tree | 966abd3ddee38fb78ffe3786c16b0f081e397afe /lib/puppet/parser/interpreter.rb | |
parent | bca4f5ea9df7c7374686fdee0ee672ed470ef91c (diff) | |
download | puppet-de0d1ddf13a8486ee6fe253e8c5a242aeca38c6a.tar.gz puppet-de0d1ddf13a8486ee6fe253e8c5a242aeca38c6a.tar.xz puppet-de0d1ddf13a8486ee6fe253e8c5a242aeca38c6a.zip |
Adding a few informative facts on the server side: serverversion, servername, serverip. And only printing the parse time in the interpreter if it is not a local connection.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1102 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser/interpreter.rb')
-rw-r--r-- | lib/puppet/parser/interpreter.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb index 5f5ecbe1f..f443ee3cd 100644 --- a/lib/puppet/parser/interpreter.rb +++ b/lib/puppet/parser/interpreter.rb @@ -77,6 +77,8 @@ module Puppet # by the cfengine module. @classes = hash[:Classes] || [] + @local = hash[:Local] || false + # Create our parser object parsefiles end @@ -292,8 +294,12 @@ module Puppet @parser.file = @file end - @ast = benchmark(:info, "Parsed manifest") do + if @local @parser.parse + else + @ast = benchmark(:info, "Parsed manifest") do + @parser.parse + end end # Mark when we parsed, so we can check freshness |