Method: PDK::Module::UpdateManager#changes

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

#changesHash{Symbol => Set,Hash}

Generate a summary of the changes that will be applied to the module.

Returns:

  • (Hash{Symbol => Set,Hash})

    the summary of the pending changes.

Raises:



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/pdk/module/update_manager.rb', line 42

def changes
  require 'pdk/util/filesystem'

  calculate_diffs

  {
    added:    @added_files,
    removed:  @removed_files.select { |f| PDK::Util::Filesystem.exist?(f) },
    modified: @diff_cache.reject { |_, value| value.nil? },
  }
end