Class: TFSGraph::Populators::ForProject

Inherits:
Object
  • Object
show all
Includes:
Utilities
Defined in:
lib/tfs_graph/populators/for_project.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(project) ⇒ ForProject

Returns a new instance of ForProject.



6
7
8
# File 'lib/tfs_graph/populators/for_project.rb', line 6

def initialize(project)
  @project = project
end

Instance Method Details

#populateObject



10
11
12
13
14
15
# File 'lib/tfs_graph/populators/for_project.rb', line 10

def populate
  branches = collect_branches(@project)
  branches.map {|branch| collect_changesets(branch) }

  branches.each {|branch| collect_merges(branch) }
end