[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 0.25.5-639-g8f94f35
test branch
puppet-dev at googlegroups.com
Wed Jul 14 10:34:10 UTC 2010
The following commit has been merged in the upstream branch:
commit 17e40e745157b538d19800618584d19f8d29226e
Author: Luke Kanies <luke at reductivelabs.com>
Date: Tue Mar 16 07:57:10 2010 -0700
Slightly restructuring "Functions" file
Signed-off-by: Luke Kanies <luke at reductivelabs.com>
diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb
index a0e629a..38bb2eb 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
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list