# File lib/puppet/network/format_handler.rb, line 127 127: def supported_formats 128: result = format_handler.formats.collect { |f| format_handler.format(f) }.find_all { |f| f.supported?(self) }.collect { |f| f.name }.sort do |a, b| 129: # It's an inverse sort -- higher weight formats go first. 130: format_handler.format(b).weight <=> format_handler.format(a).weight 131: end 132: 133: result = put_preferred_format_first(result) 134: 135: Puppet.debug "#{friendly_name} supports formats: #{result.map{ |f| f.to_s }.sort.join(' ')}; using #{result.first}" 136: 137: result 138: end