Class: Fiveruns::Dash::GitSCM

Inherits:
SCM show all
Defined in:
lib/fiveruns/dash/scm.rb

Instance Method Summary collapse

Methods inherited from SCM

best_match, #initialize, matching

Methods included from Typable

included

Constructor Details

This class inherits a constructor from Fiveruns::Dash::SCM

Instance Method Details

#revisionObject



61
62
63
# File 'lib/fiveruns/dash/scm.rb', line 61

def revision
  head.id
end

#timeObject



65
66
67
# File 'lib/fiveruns/dash/scm.rb', line 65

def time
  head.committed_date
end

#urlObject



69
70
71
# File 'lib/fiveruns/dash/scm.rb', line 69

def url
  repo.config.fetch('remote.origin.url', '')
end