Method: Moab::FileGroupDifference#tabulate_modified_files

Defined in:
lib/moab/file_group_difference.rb

#tabulate_modified_files(basis_path_hash, other_path_hash) ⇒ FileGroupDifference

Returns Container for reporting the set of file-level differences of type ‘modified’.

Parameters:

  • basis_path_hash (Hash<String,FileSignature>)

    The file paths and associated signatures for manifestations appearing only in the basis group

  • other_path_hash (Hash<String,FileSignature>)

    The file paths and associated signatures for manifestations appearing only in the other group

Returns:

  • (FileGroupDifference)

    Container for reporting the set of file-level differences of type ‘modified’



285
286
287
288
289
290
291
292
293
294
295
# File 'lib/moab/file_group_difference.rb', line 285

def tabulate_modified_files(basis_path_hash, other_path_hash)
  matching_keys(basis_path_hash, other_path_hash).each do |path|
    fid = FileInstanceDifference.new(change: 'modified')
    fid.basis_path = path
    fid.other_path = "same"
    fid.signatures << basis_path_hash[path]
    fid.signatures << other_path_hash[path]
    subset_hash[:modified].files << fid
  end
  self
end