Class: Moab::FileGroupDifferenceSubset
- Inherits:
-
Serializer::Serializable
- Object
- Serializer::Serializable
- Moab::FileGroupDifferenceSubset
- Includes:
- HappyMapper
- Defined in:
- lib/moab/file_group_difference_subset.rb
Overview
Copyright © 2012 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved. See LICENSE for details.
A container for reporting a set of file-level differences of the type specified by the change attribute
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
-
-
-
-
Instance Attribute Summary collapse
-
#change ⇒ String
The type of change (identical|renamed|modified|deleted|added).
-
#count ⇒ Integer
How many files were changed.
-
#files ⇒ Array<FileInstanceDifference>
The set of file instances having this type of change.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ FileGroupDifferenceSubset
constructor
A new instance of FileGroupDifferenceSubset.
Methods inherited from Serializer::Serializable
#array_to_hash, deep_diff, #diff, #key, #key_name, #summary, #to_hash, #to_json, #to_yaml, #variable_names, #variables
Constructor Details
#initialize(opts = {}) ⇒ FileGroupDifferenceSubset
Returns a new instance of FileGroupDifferenceSubset.
22 23 24 25 |
# File 'lib/moab/file_group_difference_subset.rb', line 22 def initialize(opts = {}) @files = [] super(opts) end |
Instance Attribute Details
#change ⇒ String
Returns The type of change (identical|renamed|modified|deleted|added).
29 |
# File 'lib/moab/file_group_difference_subset.rb', line 29 attribute :change, String, :key => true |
#count ⇒ Integer
Returns How many files were changed.
33 |
# File 'lib/moab/file_group_difference_subset.rb', line 33 attribute :count, Integer, :on_save => proc { |n| n.to_s } |
#files ⇒ Array<FileInstanceDifference>
Returns The set of file instances having this type of change.
41 |
# File 'lib/moab/file_group_difference_subset.rb', line 41 has_many :files, FileInstanceDifference, :tag => 'file' |