Class: Gitlab::Ci::Status::Stage::PlayManual
- Inherits:
-
Extended
- Object
- SimpleDelegator
- Extended
- Gitlab::Ci::Status::Stage::PlayManual
show all
- Includes:
- Routing
- Defined in:
- lib/gitlab/ci/status/stage/play_manual.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Routing
includes_helpers, redirect_legacy_paths, url_helpers
Methods inherited from Extended
#initialize
Class Method Details
.matches?(stage, user) ⇒ Boolean
32
33
34
|
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 32
def self.matches?(stage, user)
stage.manual_playable?
end
|
Instance Method Details
28
29
30
|
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 28
def action_button_title
_('Play all manual')
end
|
#action_icon ⇒ Object
10
11
12
|
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 10
def action_icon
'play'
end
|
#action_method ⇒ Object
24
25
26
|
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 24
def action_method
:post
end
|
#action_path ⇒ Object
18
19
20
21
22
|
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 18
def action_path
pipeline = subject.pipeline
project_pipeline_stage_play_manual_path(pipeline.project, pipeline, subject.name)
end
|
#action_title ⇒ Object
14
15
16
|
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 14
def action_title
'Play all manual'
end
|
#has_action? ⇒ Boolean
36
37
38
|
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 36
def has_action?
true
end
|