# File lib/puppet/type.rb, line 1015 1015: def self.providers_by_source 1016: # Put the default provider first, then the rest of the suitable providers. 1017: sources = [] 1018: [defaultprovider, suitableprovider].flatten.uniq.collect do |provider| 1019: next if sources.include?(provider.source) 1020: 1021: sources << provider.source 1022: provider 1023: end.compact 1024: end