Class: TFSGraph::Populators::SinceDate

Inherits:
Object
  • Object
show all
Includes:
Utilities
Defined in:
lib/tfs_graph/populators/since_date.rb

Constant Summary

Constants included from StoreHelpers

StoreHelpers::UPDATED_KEY

Instance Method Summary collapse

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

#populateObject



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