Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add File#add and File#add_aggregate.
Also adds write access to the manifest aggregates list.
- Loading branch information
Showing
4 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#------------------------------------------------------------------------------ | ||
# Copyright (c) 2014 The University of Manchester, UK. | ||
# | ||
# BSD Licenced. See LICENCE.rdoc for details. | ||
# | ||
# Author: Robert Haines | ||
#------------------------------------------------------------------------------ | ||
|
||
# Is the given file aggregate in the list of aggregate objects | ||
def file_aggregate_in_list(agg, list) | ||
list.each do |e| | ||
return true if e.file == "/#{agg}" | ||
end | ||
|
||
false | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters