Class: Gitlab::Ci::Status::Build::Manual

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/build/manual.rb

Direct Known Subclasses

Gitlab::Ci::Status::Bridge::Manual

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)

8
9
10
# File 'lib/gitlab/ci/status/build/manual.rb', line 8

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

Instance Method Details

#illustrationObject


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

def illustration
  {
    image: 'illustrations/manual_action.svg',
    size: 'svg-394',
    title: _('This job requires a manual action'),
    content: illustration_content
  }
end