Class: Gitlab::Ci::Status::Stage::PlayManual

Inherits:
Extended
  • Object
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

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Methods inherited from Extended

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Status::Extended

Class Method Details

.matches?(stage, user) ⇒ Boolean

Returns:

  • (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

#action_button_titleObject


28
29
30
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 28

def action_button_title
  _('Play all manual')
end

#action_iconObject


10
11
12
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 10

def action_icon
  'play'
end

#action_methodObject


24
25
26
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 24

def action_method
  :post
end

#action_pathObject


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_titleObject


14
15
16
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 14

def action_title
  'Play all manual'
end

#has_action?Boolean

Returns:

  • (Boolean)

36
37
38
# File 'lib/gitlab/ci/status/stage/play_manual.rb', line 36

def has_action?
  true
end