Method: PDK::Module::Convert#summary

Defined in:
lib/pdk/module/convert.rb

#summaryObject



225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/pdk/module/convert.rb', line 225

def summary
  summary = {}
  update_manager.changes.each do |category, update_category|
    if update_category.respond_to?(:keys)
      updated_files = update_category.keys
    else
      begin
        updated_files = update_category.map { |file| file[:path] }
      rescue TypeError
        updated_files = update_category.to_a
      end
    end

    summary[category] = updated_files
  end

  summary
end