Welcome to mirror list, hosted at ThFree Co, Russian Federation.

scheduled.rb « pipeline « status « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ec6994bd2f63773080e63ef251252fa85977696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module Gitlab
  module Ci
    module Status
      module Pipeline
        class Scheduled < Status::Extended
          def text
            s_('CiStatusText|scheduled')
          end

          def label
            s_('CiStatusLabel|waiting for delayed job')
          end

          def self.matches?(pipeline, user)
            pipeline.scheduled?
          end
        end
      end
    end
  end
end