Class: Ci::RunnerPresenter
- Inherits:
-
Gitlab::View::Presenter::Delegated
- Object
- SimpleDelegator
- Gitlab::View::Presenter::Delegated
- Ci::RunnerPresenter
- Defined in:
- app/presenters/ci/runner_presenter.rb
Instance Method Summary collapse
- #executor_name ⇒ Object
- #locked? ⇒ Boolean (also: #locked)
- #paused ⇒ Object
Methods inherited from Gitlab::View::Presenter::Delegated
Methods included from Gitlab::Utils::DelegatorOverride
#delegator_override, #delegator_override_with, #delegator_target, validator, validators, verify!
Methods included from Gitlab::View::Presenter::Base
#__subject__, #can?, #declarative_policy_delegate, #is_a?, #path_with_line_numbers, #present, #url_builder, #web_path, #web_url
Methods included from Gitlab::Allowable
Methods included from Gitlab::Routing
includes_helpers, redirect_legacy_paths, url_helpers
Constructor Details
This class inherits a constructor from Gitlab::View::Presenter::Delegated
Instance Method Details
#executor_name ⇒ Object
15 16 17 |
# File 'app/presenters/ci/runner_presenter.rb', line 15 def executor_name Ci::Runner::EXECUTOR_TYPE_TO_NAMES[executor_type&.to_sym] end |
#locked? ⇒ Boolean Also known as: locked
8 9 10 |
# File 'app/presenters/ci/runner_presenter.rb', line 8 def locked? read_attribute(:locked) && project_type? end |
#paused ⇒ Object
19 20 21 |
# File 'app/presenters/ci/runner_presenter.rb', line 19 def paused !active end |