Class: Gitlab::Ci::Status::Build::Pending

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/build/pending.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?(build, user) ⇒ Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/gitlab/ci/status/build/pending.rb', line 17

def self.matches?(build, user)
  build.pending?
end

Instance Method Details

#illustrationObject


8
9
10
11
12
13
14
15
# File 'lib/gitlab/ci/status/build/pending.rb', line 8

def illustration
  {
    image: 'illustrations/pending_job_empty.svg',
    size: 'svg-430',
    title: _('This job has not started yet'),
    content: _('This job is in pending state and is waiting to be picked by a runner')
  }
end