Class: Gitlab::Ci::Status::Build::Canceled

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

16
17
18
# File 'lib/gitlab/ci/status/build/canceled.rb', line 16

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

Instance Method Details

#illustrationObject


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

def illustration
  {
    image: 'illustrations/canceled-job_empty.svg',
    size: 'svg-430',
    title: _('This job has been canceled')
  }
end