Class: Gitlab::Ci::Status::Build::Erased

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/build/erased.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/erased.rb', line 16

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

Instance Method Details

#illustrationObject


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

def illustration
  {
    image: 'illustrations/erased-log_empty.svg',
    size: 'svg-430',
    title: _('Job has been erased')
  }
end