class Moab::FileInstanceDifference
A container for recording difference information at the file level
-
If there was no change, the change type is set to identical
-
If the signature is unchanged, but the path has moved, the change type is set to renamed
-
If path is unchanged, but the signature has changed, the change type is set to modified and
both signatures are reported
-
If the signature and path are only in the basis inventory, the change type is set to deleted
-
If the signature and path are only in the other inventory, the change type is set to added
This is a child element of {FileGroupDifferenceSubset}, which is in turn a descendent of {FileInventoryDifference}, the documentation of which contains a full example
Data Model¶ ↑
-
{FileInventoryDifference} = compares two {FileInventory} instances based on file signatures and pathnames
-
{FileGroupDifference} [1..*] = performs analysis and reports differences between two matching {FileGroup} objects
-
{FileGroupDifferenceSubset} [1..5] = collects a set of file-level differences of a give change type
-
{FileInstanceDifference} [1..*] = contains difference information at the file level
-
{FileSignature} [1..2] = contains the file signature(s) of two file instances being compared
-
-
-
-
@note Copyright © 2012 by The Board of Trustees of the Leland Stanford
Junior University.
All rights reserved. See {file:LICENSE.rdoc} for details.
Public Class Methods
Source
# File lib/moab/file_instance_difference.rb, line 30 def initialize(opts = {}) @signatures = [] super(opts) end
(see Serializable#initialize)
Serializer::Serializable::new