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
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
50 51 52 |
# File 'app/presenters/commit_status_presenter.rb', line 50 def self. CALLOUT_FAILURE_MESSAGES end |
Instance Method Details
#callout_failure_message ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'app/presenters/commit_status_presenter.rb', line 54 def failure_reason.to_sym.then do |failure_reason| = self.class..fetch(failure_reason) # Include custom error message from job_messages only for job_router_failure = "#{message} #{job_router_failure_msg}" if failure_reason == :job_router_failure if doc_link = troubleshooting_doc[failure_reason] += " #{help_page_link(doc_link)}" end end end |