Class: TFSGraph::Populators::SinceDate
- Inherits:
-
Object
- Object
- TFSGraph::Populators::SinceDate
- Includes:
- Utilities
- Defined in:
- lib/tfs_graph/populators/since_date.rb
Constant Summary
Constants included from StoreHelpers
Instance Method Summary collapse
-
#initialize(since) ⇒ SinceDate
constructor
A new instance of SinceDate.
- #populate ⇒ Object
Methods included from Utilities
#clean, #collect_branches, #collect_changesets, #collect_merges, #collect_projects, #finalize, #generate_branch_tree
Methods included from StoreHelpers
#flush_all, #last_updated_on, #mark_as_updated
Constructor Details
#initialize(since) ⇒ SinceDate
Returns a new instance of SinceDate.
6 7 8 |
# File 'lib/tfs_graph/populators/since_date.rb', line 6 def initialize(since) @since = since end |
Instance Method Details
#populate ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/tfs_graph/populators/since_date.rb', line 10 def populate clean collect_projects.map do |project| branches = collect_branches(project) branches.map do |branch| collect_changesets(branch, :cache_since_date, @since) end branches.each {|branch| collect_merges(branch) } end finalize end |