# File lib/facter/util/resolution.rb, line 16 16: def self.have_which 17: if ! defined?(@have_which) or @have_which.nil? 18: if Facter.value(:kernel) == 'windows' 19: @have_which = false 20: else 21: %x{which which >/dev/null 2>&1} 22: @have_which = ($? == 0) 23: end 24: end 25: @have_which 26: end