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

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

17
18
19
# File 'lib/gitlab/ci/status/build/manual.rb', line 17

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

Instance Method Details

#illustrationObject


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

def illustration
  {
    image: 'illustrations/manual_action.svg',
    size: 'svg-394',
    title: _('This job requires a manual action'),
    content: _('This job requires manual intervention to start. Before starting this job, you can add variables below for last-minute configuration changes.')
  }
end