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.
34
35
36
|
# File 'app/reporters/subversion_reporter.rb', line 34
def initialize(connection = SubversionConnection.new)
@connection = connection
end
|
Instance Method Details
#headline(rid) ⇒ Object
47
48
49
50
51
52
53
54
55
|
# File 'app/reporters/subversion_reporter.rb', line 47
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
43
44
45
|
# File 'app/reporters/subversion_reporter.rb', line 43
def headlines
build_headlines_from(@connection.log(:all))
end
|
#latest_headlines(from_rid = nil) ⇒ Object
38
39
40
41
|
# File 'app/reporters/subversion_reporter.rb', line 38
def latest_headlines(from_rid=nil)
from_rid ||= 'r0'
build_headlines_from(@connection.log(:history_from => from_rid))
end
|