summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/functions.rb
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-06-17 11:26:58 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-06-28 15:29:02 -0700
commit7ad1b04244e0b6252d7fea7ca76e8bb708caa66a (patch)
treeeb2c6549b11fc48102ef78c48989e9b2a587cd9a /lib/puppet/parser/functions.rb
parent014d952883246f8919d4b1935d84b301c63a34d0 (diff)
downloadpuppet-7ad1b04244e0b6252d7fea7ca76e8bb708caa66a.tar.gz
puppet-7ad1b04244e0b6252d7fea7ca76e8bb708caa66a.tar.xz
puppet-7ad1b04244e0b6252d7fea7ca76e8bb708caa66a.zip
Clean up indentation, whitespace, and commented out code
The mis-indented code, extra newlines, and commented out code were noticed while investigating the order dependent test failure fixed in 4365c8ba. Reviewed-by: Max Martin <max@puppetlabs.com>
Diffstat (limited to 'lib/puppet/parser/functions.rb')
-rw-r--r--lib/puppet/parser/functions.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb
index 5807c0bbe..e19ac127f 100644
--- a/lib/puppet/parser/functions.rb
+++ b/lib/puppet/parser/functions.rb
@@ -16,11 +16,9 @@ module Puppet::Parser::Functions
def self.autoloader
unless defined?(@autoloader)
-
- @autoloader = Puppet::Util::Autoload.new(
+ @autoloader = Puppet::Util::Autoload.new(
self,
"puppet/parser/functions",
-
:wrap => false
)
end
@@ -88,7 +86,6 @@ module Puppet::Parser::Functions
ret = ""
functions.sort { |a,b| a[0].to_s <=> b[0].to_s }.each do |name, hash|
- #ret += "#{name}\n#{hash[:type]}\n"
ret += "#{name}\n#{"-" * name.to_s.length}\n"
if hash[:doc]
ret += Puppet::Util::Docs.scrub(hash[:doc])
@@ -114,11 +111,9 @@ module Puppet::Parser::Functions
end
# 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|
send(level, vals.join(" "))
end
end
-
end