Class: CommitStatusPresenter
- Inherits:
-
Gitlab::View::Presenter::Delegated
- Object
- SimpleDelegator
- Gitlab::View::Presenter::Delegated
- CommitStatusPresenter
- Defined in:
- app/presenters/commit_status_presenter.rb
Direct Known Subclasses
Constant Summary collapse
- TROUBLESHOOTING_DOC =
{ environment_creation_failure: { path: 'ci/environments/index', anchor: 'a-deployment-job-failed-with-this-job-could-not-be-executed-because-it-would-create-an-environment-with-an-invalid-parameter-error' }, failed_outdated_deployment_job: { path: 'ci/environments/deployment_safety', anchor: 'prevent-outdated-deployment-jobs' } }.freeze
Class Method Summary collapse
Instance Method Summary collapse
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
Class Method Details
.callout_failure_messages ⇒ Object
53 54 55 |
# File 'app/presenters/commit_status_presenter.rb', line 53 def self. CALLOUT_FAILURE_MESSAGES end |
Instance Method Details
#callout_failure_message ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'app/presenters/commit_status_presenter.rb', line 57 def = self.class..fetch(failure_reason.to_sym) if doc = TROUBLESHOOTING_DOC[failure_reason.to_sym] += " #{help_page_link(doc[:path], doc[:anchor])}" end end |