Class: Gitlab::Ci::Status::Pipeline::Delayed

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/pipeline/delayed.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Extended

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Status::Extended

Class Method Details

.matches?(pipeline, user) ⇒ Boolean

Returns:

  • (Boolean)

16
17
18
# File 'lib/gitlab/ci/status/pipeline/delayed.rb', line 16

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

Instance Method Details

#labelObject


12
13
14
# File 'lib/gitlab/ci/status/pipeline/delayed.rb', line 12

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

#textObject


8
9
10
# File 'lib/gitlab/ci/status/pipeline/delayed.rb', line 8

def text
  s_('CiStatusText|delayed')
end