debian-mirror-gitlab/lib/gitlab/ci/status/pipeline/delayed.rb

24 lines
432 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
2018-12-05 23:21:45 +05:30
module Gitlab
module Ci
module Status
module Pipeline
2018-12-13 13:39:08 +05:30
class Delayed < Status::Extended
2018-12-05 23:21:45 +05:30
def text
2018-12-13 13:39:08 +05:30
s_('CiStatusText|delayed')
2018-12-05 23:21:45 +05:30
end
def label
s_('CiStatusLabel|waiting for delayed job')
end
def self.matches?(pipeline, user)
pipeline.scheduled?
end
end
end
end
end
end