10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/ci-go-nfo/cctray.rb', line 10
def self.data_from_xml
cctray = Ci::WWW::Go.cctray_xml
splitd = XMLMotor.splitter cctray.body
tags = XMLMotor.indexify splitd
go_nfo = {}
go_nfo['names'] = XMLMotor.xmlattrib 'name', splitd, tags, 'Project'
go_nfo['lastBuildStatus'] = XMLMotor.xmlattrib 'lastBuildStatus', splitd, tags, 'Project'
go_nfo['lastBuildLabels'] = XMLMotor.xmlattrib 'lastBuildLabel', splitd, tags, 'Project'
go_nfo['lastBuildTimes'] = XMLMotor.xmlattrib 'lastBuildTime', splitd, tags, 'Project'
go_nfo['weburls'] = XMLMotor.xmlattrib 'webUrl', splitd, tags, 'Project'
go_nfo
end
|