diff options
author | Jacob Helwig <jacob@puppetlabs.com> | 2011-06-17 11:26:58 -0700 |
---|---|---|
committer | Jacob Helwig <jacob@puppetlabs.com> | 2011-06-17 11:34:48 -0700 |
commit | 51608221da248e679326087303ecd0c649225d5b (patch) | |
tree | f40052427f5bd6d8a98ba63bf996b1466955d9bc | |
parent | 92a8f4a1cbb4e11a9bacf571b4c9f3d8181392fb (diff) | |
download | puppet-51608221da248e679326087303ecd0c649225d5b.tar.gz puppet-51608221da248e679326087303ecd0c649225d5b.tar.xz puppet-51608221da248e679326087303ecd0c649225d5b.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>
-rw-r--r-- | lib/puppet/parser/functions.rb | 7 |
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 |