Author: madduck Language: text
Description: No description Timestamp: 2010-03-12 11:24:21 -0500
View raw paste Reply
  1. How can this code:
  2.  
  3.  
  4.             if    r =~ /^(0|[oO]ff|[nNfF].*|)$/ then
  5.                 Puppet.debug("Mapping '#{ret}' to false.")
  6.                 ret << false
  7.             elsif r =~ /^(1|[tTyYjJsSoO].*)$/   then
  8.                 Puppet.debug("Mapping '#{ret}' to true.")
  9.                 ret << true
  10.             else
  11.                 raise Puppet::ParseError, "Cannot cast extlookup result '#{r}' to a boolean value."
  12.             end
  13.  
  14.  
  15.  
  16. yield this debug output??
  17.  
  18.  
  19. debug: Mapping '' to false.
  20. debug: Mapping '' to true.
  21. debug: Mapping '' to false.
  22. debug: Mapping '' to true.
  23.  
View raw paste Reply