Sha256: 386f54db2e66b91d791a67e2c572c17954749d529c757d7d1fc7495277756f42

Contents?: true

Size: 546 Bytes

Versions: 15

Compression:

Stored size: 546 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

15 entries across 15 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.30.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.29.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.28.1 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.28.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.27.1 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.27.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.26.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.25.1 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.25.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.24.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.23.1 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.23.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.22.0 app/views/shipit/ccmenu/project.xml.builder
shipit-engine-0.21.0 app/views/shipit/ccmenu/project.xml.builder