Class: Gitlab::Ci::Status::Bridge::Play

Inherits:
Gitlab::Ci::Status::Build::Play show all
Defined in:
lib/gitlab/ci/status/bridge/play.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Gitlab::Ci::Status::Build::Play

#action_button_title, #action_icon, #action_method, #action_path, #action_title, #label

Methods inherited from Extended

#initialize

Constructor Details

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

Class Method Details

.matches?(bridge, user) ⇒ Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/gitlab/ci/status/bridge/play.rb', line 12

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

Instance Method Details

#has_action?Boolean

Returns:

  • (Boolean)

8
9
10
# File 'lib/gitlab/ci/status/bridge/play.rb', line 8

def has_action?
  can?(user, :play_job, subject)
end