Class: SubversionReporter
Instance Method Summary
collapse
add, button, #buttons, #cache?, caching, #channel_title, #latest_headline, #name, #params_for, reporter_name, title
Constructor Details
#initialize(connection = SubversionConnection.new) ⇒ SubversionReporter
Returns a new instance of SubversionReporter.
33
34
35
|
# File 'app/reporters/subversion_reporter.rb', line 33
def initialize(connection = SubversionConnection.new)
@connection = connection
end
|
Instance Method Details
#headline(rid) ⇒ Object
46
47
48
49
50
51
52
53
54
|
# File 'app/reporters/subversion_reporter.rb', line 46
def headline(rid)
revision_id = rid.match(/^r(.+)/)[1]
output = @connection.log(:only => revision_id)
result_headline, remain = build_headline_from(output)
return result_headline
end
|
#headlines ⇒ Object
42
43
44
|
# File 'app/reporters/subversion_reporter.rb', line 42
def headlines
build_headlines_from(@connection.log(:all))
end
|
#latest_headlines(from_rid = nil) ⇒ Object
37
38
39
40
|
# File 'app/reporters/subversion_reporter.rb', line 37
def latest_headlines(from_rid=nil)
from_rid ||= 'r0'
build_headlines_from(@connection.log(:history_from => from_rid))
end
|