vendor/bundle/ruby/1.8/gems/facter-1.6.5/lib/facter/util/fact.rb
def searching
    if searching?
      Facter.debug "Caught recursion on %s" % @name

      # return a cached value if we've got it
      if @value
        return @value
      else
        return nil
      end
    end

    # If we've gotten this far, we're not already searching, so go ahead and do so.
    @searching = true
    begin
      yield
    ensure
      @searching = false
    end
  end
# Lock our searching process, so we never ge stuck in recursion.
Lock our searching process, so we never ge stuck in recursion.
Lock our searching process so we never ge stuck in recursion .
def searching
    if searching?
      Facter.debug "Caught recursion on %s" % @name
      if @value
        return @value
      else
        return nil
      end
    end
    @searching = true
    begin
      yield
    ensure
      @searching = false
    end
  end
def searching if searching? Facter . debug "Caught recursion on %s" % @name if @value return @value else return nil end end @searching = true begin yield ensure @searching = false end end
Lock our searching process, so we never ge stuck in recursion.
Lock our searching process so we never ge stuck in recursion .
# return a cached value if we've got it # If we've gotten this far, we're not already searching, so go ahead and do so.