class TFSGraph::Project
Constants
- SCHEMA
Public Instance Methods
<=>(other)
click to toggle source
# File lib/tfs_graph/project.rb, line 13 def <=>(other) id <=> other.id end
active_branches()
click to toggle source
# File lib/tfs_graph/project.rb, line 57 def active_branches branches.reject(&:archived?) end
add_branch(branch)
click to toggle source
# File lib/tfs_graph/project.rb, line 36 def add_branch(branch) branch.project = self.name branch.save! @repo.relate(:branches, db_object, branch.db_object) end
all_activity()
click to toggle source
# File lib/tfs_graph/project.rb, line 47 def all_activity @repo.activity(self) end
all_activity_by_date(limiter=nil)
click to toggle source
# File lib/tfs_graph/project.rb, line 51 def all_activity_by_date(limiter=nil) raise InvalidArgument("parameter must be a Date") unless limiter.nil? || limiter.is_a?(Time) @repo.activity_by_date(self, limiter).group_by(&:formatted_created) end
branches()
click to toggle source
# File lib/tfs_graph/project.rb, line 61 def branches branches_with_hidden.reject(&:hidden?) end
branches_for_root(root)
click to toggle source
# File lib/tfs_graph/project.rb, line 65 def branches_for_root(root) @repo.branches_for_root(self, root) end
changesets_for_root(root)
click to toggle source
# File lib/tfs_graph/project.rb, line 69 def changesets_for_root(root) @repo.changesets_for_root(self, root) end
hide!()
click to toggle source
# File lib/tfs_graph/project.rb, line 22 def hide! self.hidden = true save! end
root_branches()
click to toggle source
# File lib/tfs_graph/project.rb, line 43 def root_branches @repo.root_branches(self) end
updated!()
click to toggle source
# File lib/tfs_graph/project.rb, line 17 def updated! @last_updated = Time.now.utc save! end