summaryrefslogtreecommitdiffstats
path: root/lib/puppet/function.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-12 02:06:15 +0000
committerLuke Kanies <luke@madstop.com>2005-07-12 02:06:15 +0000
commite19ca977aa201297a3c06eca15e434298321454b (patch)
tree12cde8d09c76b5b2006be1737068d6d80c421a68 /lib/puppet/function.rb
parent81777002df44d361ec5ca2b05cab861bc2b726da (diff)
downloadpuppet-e19ca977aa201297a3c06eca15e434298321454b.tar.gz
puppet-e19ca977aa201297a3c06eca15e434298321454b.tar.xz
puppet-e19ca977aa201297a3c06eca15e434298321454b.zip
converting to "include Puppet" and not qualifing output methods
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@368 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/function.rb')
-rw-r--r--lib/puppet/function.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/function.rb b/lib/puppet/function.rb
index 3a46ace72..ec26e77ac 100644
--- a/lib/puppet/function.rb
+++ b/lib/puppet/function.rb
@@ -37,13 +37,13 @@ module Puppet
require 'puppet/fact'
value = Fact[fact]
- Puppet.debug("retrieved %s as %s" % [fact,value])
+ debug("retrieved %s as %s" % [fact,value])
value
})
Function.new("addfact", proc { |args|
require 'puppet/fact'
- #Puppet.debug("running addfact")
+ #debug("running addfact")
hash = nil
if args.is_a?(Array)
@@ -59,7 +59,7 @@ module Puppet
else
raise "Functions must have names"
end
- #Puppet.debug("adding fact %s" % name)
+ #debug("adding fact %s" % name)
newfact = Fact.add(name) { |fact|
hash.each { |key,value|
method = key + "="
@@ -67,6 +67,6 @@ module Puppet
}
}
- #Puppet.debug("got fact %s" % newfact)
+ #debug("got fact %s" % newfact)
})
end