Class: TFSGraph::GraphPopulator

Inherits:
Object
  • Object
show all
Extended by:
StoreHelpers
Includes:
Populators
Defined in:
lib/tfs_graph/graph_populator.rb

Constant Summary

Constants included from StoreHelpers

StoreHelpers::UPDATED_KEY

Class Method Summary collapse

Methods included from StoreHelpers

flush_all, last_updated_on, mark_as_updated

Class Method Details

.incrementally_update_allObject



26
27
28
# File 'lib/tfs_graph/graph_populator.rb', line 26

def incrementally_update_all
  populate_graph(Populators::SinceLast)
end

.populate_all_from_time(time) ⇒ Object



30
31
32
# File 'lib/tfs_graph/graph_populator.rb', line 30

def populate_all_from_time(time)
  populate_graph(Populators::SinceDate, time)
end

.populate_graph(type = Everything, *args) ⇒ Object



21
22
23
24
# File 'lib/tfs_graph/graph_populator.rb', line 21

def populate_graph(type=Everything, *args)
  populator = type.new *args
  populator.populate
end