diff options
author | Luke Kanies <luke@madstop.com> | 2005-06-27 21:47:06 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-06-27 21:47:06 +0000 |
commit | 60783f0777eb5dd89d44a8dfd2ced49f06a32d8f (patch) | |
tree | d1cf67771de26cd49d98fff28d2e7aa89cbf63e0 /lib/puppet/function.rb | |
parent | 8f95084cd854aef4e3493854e58cefd352cdc68d (diff) | |
download | puppet-60783f0777eb5dd89d44a8dfd2ced49f06a32d8f.tar.gz puppet-60783f0777eb5dd89d44a8dfd2ced49f06a32d8f.tar.xz puppet-60783f0777eb5dd89d44a8dfd2ced49f06a32d8f.zip |
renaming blink to puppet
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@305 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/function.rb')
-rw-r--r-- | lib/puppet/function.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/puppet/function.rb b/lib/puppet/function.rb index d5cc11107..3a46ace72 100644 --- a/lib/puppet/function.rb +++ b/lib/puppet/function.rb @@ -2,10 +2,10 @@ # $Id$ -require 'blink' -require 'blink/fact' +require 'puppet' +require 'puppet/fact' -module Blink +module Puppet class Function @@functions = Hash.new(nil) @@ -34,16 +34,16 @@ module Blink end Function.new("fact", proc { |fact| - require 'blink/fact' + require 'puppet/fact' value = Fact[fact] - Blink.debug("retrieved %s as %s" % [fact,value]) + Puppet.debug("retrieved %s as %s" % [fact,value]) value }) Function.new("addfact", proc { |args| - require 'blink/fact' - #Blink.debug("running addfact") + require 'puppet/fact' + #Puppet.debug("running addfact") hash = nil if args.is_a?(Array) @@ -59,7 +59,7 @@ module Blink else raise "Functions must have names" end - #Blink.debug("adding fact %s" % name) + #Puppet.debug("adding fact %s" % name) newfact = Fact.add(name) { |fact| hash.each { |key,value| method = key + "=" @@ -67,6 +67,6 @@ module Blink } } - #Blink.debug("got fact %s" % newfact) + #Puppet.debug("got fact %s" % newfact) }) end |