Class: Gitlab::Ci::Status::Build::WaitingForResource

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

20
21
22
# File 'lib/gitlab/ci/status/build/waiting_for_resource.rb', line 20

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

Instance Method Details

#illustrationObject

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


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

def illustration
  {
    image: 'illustrations/pending_job_empty.svg',
    size: 'svg-430',
    title: _('This job is waiting for resource: ') + subject.resource_group.key
  }
end