Module: Autobump Private
- Defined in:
- autobump.rb,
autobump/dsl.rb
Overview
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Autobump eligibility for formulae and casks.
Defined Under Namespace
Modules: DSL
Class Method Summary collapse
-
.reason_from_api(reason) ⇒ String, Symbol
private
Recover preset reasons from JSON while preserving custom explanations.
Class Method Details
.reason_from_api(reason) ⇒ String, Symbol
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
Recover preset reasons from JSON while preserving custom explanations.
12 13 14 |
# File 'autobump.rb', line 12 def self.reason_from_api(reason) NO_AUTOBUMP_REASONS_LIST.key?(reason.to_sym) ? reason.to_sym : reason end |