debian-mirror-gitlab/lib/gitlab/ci/status/build/preparing.rb

29 lines
688 B
Ruby
Raw Normal View History

2019-05-18 00:54:41 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
module Status
module Build
class Preparing < Status::Extended
##
# TODO: image is shared with 'pending'
# until we get a dedicated one
#
def illustration
{
image: 'illustrations/job_not_triggered.svg',
size: 'svg-306',
title: _('This job is preparing to start'),
content: _('This job is performing tasks that must complete before it can start')
}
end
def self.matches?(build, _)
build.preparing?
end
end
end
end
end
end