Class: Fiveruns::Dash::SvnSCM

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



99
100
101
# File 'lib/fiveruns/dash/scm.rb', line 99

def revision
    @yaml['Last Changed Rev'] || @yaml['Revision']
end

#timeObject



103
104
105
106
# File 'lib/fiveruns/dash/scm.rb', line 103

def time
  datestring = @yaml['Last Changed Date']
  datestring.nil? ? nil : DateTime.parse(datestring.split("(").first.strip)
end

#urlObject



108
109
110
# File 'lib/fiveruns/dash/scm.rb', line 108

def url
  @url ||= @yaml['URL']
end