Class: Gitlab::Ci::Status::Build::Preparing

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

Returns:

  • (Boolean)

21
22
23
# File 'lib/gitlab/ci/status/build/preparing.rb', line 21

def self.matches?(build, _)
  build.preparing?
end

Instance Method Details

#illustrationObject

TODO: image is shared with 'pending' until we get a dedicated one


12
13
14
15
16
17
18
19
# File 'lib/gitlab/ci/status/build/preparing.rb', line 12

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