summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/functions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/parser/functions.rb')
-rw-r--r--lib/puppet/parser/functions.rb11
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