diff options
author | Luke Kanies <luke@reductivelabs.com> | 2010-03-16 07:57:10 -0700 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | 17e40e745157b538d19800618584d19f8d29226e (patch) | |
tree | 1d18c27ab7593df5b7a36b037add7066306f483d /lib/puppet/parser | |
parent | 9d0a38ee1baa295fb8d2b69f13cbfc91b5de5800 (diff) | |
download | puppet-17e40e745157b538d19800618584d19f8d29226e.tar.gz puppet-17e40e745157b538d19800618584d19f8d29226e.tar.xz puppet-17e40e745157b538d19800618584d19f8d29226e.zip |
Slightly restructuring "Functions" file
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r-- | lib/puppet/parser/functions.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb index a0e629a5b..38bb2eb42 100644 --- a/lib/puppet/parser/functions.rb +++ b/lib/puppet/parser/functions.rb @@ -1,10 +1,9 @@ require 'puppet/util/autoload' require 'puppet/parser/scope' -module Puppet::Parser -module Functions - # A module for managing parser functions. Each specified function - # becomes an instance method on the Scope class. +# A module for managing parser functions. Each specified function +# becomes an instance method on the Scope class. +module Puppet::Parser::Functions @functions = {} @@ -124,11 +123,9 @@ module Functions # Runs a newfunction to create a function for each of the log levels Puppet::Util::Log.levels.each do |level| - newfunction(level, :doc => "Log a message on the server at level - #{level.to_s}.") do |vals| + newfunction(level, :doc => "Log a message on the server at level #{level.to_s}.") do |vals| send(level, vals.join(" ")) end end end -end |