Method: Puppet::Provider::Confine.test
- Defined in:
- lib/vendor/puppet/provider/confine.rb
.test(name) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/vendor/puppet/provider/confine.rb', line 23 def self.test(name) unless @tests[name] begin require "puppet/provider/confine/#{name}" rescue LoadError => detail unless detail.to_s =~ /No such file|cannot load such file/i warn "Could not load confine test '#{name}': #{detail}" end # Could not find file end end @tests[name] end |