Sha256: 1ba0dd69b66bd696a693d1154adc93b1952a6950a274ebf83e213102aafea0a0
Contents?: true
Size: 561 Bytes
Versions: 7
Compression:
Stored size: 561 Bytes
Contents
# Derived from http://timnew.me/blog/2013/04/07/multiple-project-summary-reporting-standard-cctray-xml-feed/ status_map = {'backlogged' => 'failure', 'locked' => 'failure'} xml.instruct! xml.Projects do xml.Project '', { :name => stack.to_param, :lastBuildStatus => status_map.fetch(stack.merge_status, stack.merge_status).capitalize, :activity => deploy.running? ? 'Building' : 'Sleeping', :lastBuildTime => deploy.ended_at || deploy.started_at || deploy.created_at, :lastBuildLabel => deploy.id, :webUrl => stack_url(stack), } end
Version data entries
7 entries across 7 versions & 1 rubygems