Class: Homebrew::Bundle::PackageType Abstract Private
- Inherits:
-
Checker::Base
- Object
- Checker::Base
- Homebrew::Bundle::PackageType
- Extended by:
- T::Helpers
- Defined in:
- bundle/extensions/extension.rb
Overview
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
It cannot be directly instantiated. Subclasses must implement the abstract methods below.
Class Method Summary collapse
- .check(entries, exit_on_first_error: false, no_upgrade: false, verbose: false) ⇒ Array<Object> private
- .check_supported? ⇒ Boolean private
- .dump ⇒ String abstract private
- .dump_output(describe: false, no_restart: false) ⇒ String private
- .dump_supported? ⇒ Boolean private
- .fetchable_name(name, options = {}, no_upgrade: false) ⇒ String? private
- .inherited(subclass) ⇒ void private
- .install_supported? ⇒ Boolean private
- .install_verb(_name = "", _options = {}) ⇒ String private
- .reset! ⇒ void abstract private
- .type ⇒ Symbol private
Methods inherited from Checker::Base
#checkable_entries, #exit_early_check, #failure_reason, #find_actionable, #format_checkable, #full_check, #installed_and_up_to_date?
Class Method Details
.check(entries, exit_on_first_error: false, no_upgrade: false, verbose: false) ⇒ Array<Object>
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.
150 151 152 |
# File 'bundle/extensions/extension.rb', line 150 def self.check(entries, exit_on_first_error: false, no_upgrade: false, verbose: false) new.find_actionable(entries, exit_on_first_error:, no_upgrade:, verbose:) end |
.check_supported? ⇒ Boolean
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.
135 136 137 |
# File 'bundle/extensions/extension.rb', line 135 def self.check_supported? true end |
.dump ⇒ String
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.
155 |
# File 'bundle/extensions/extension.rb', line 155 def self.dump; end |
.dump_output(describe: false, no_restart: false) ⇒ String
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.
158 159 160 161 162 163 |
# File 'bundle/extensions/extension.rb', line 158 def self.dump_output(describe: false, no_restart: false) _ = describe _ = no_restart dump end |
.dump_supported? ⇒ Boolean
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.
105 106 107 |
# File 'bundle/extensions/extension.rb', line 105 def self.dump_supported? true end |
.fetchable_name(name, options = {}, no_upgrade: false) ⇒ String?
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.
126 127 128 129 130 131 132 |
# File 'bundle/extensions/extension.rb', line 126 def self.fetchable_name(name, = {}, no_upgrade: false) _ = name _ = _ = no_upgrade nil end |
.inherited(subclass) ⇒ void
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.
This method returns an undefined value.
92 93 94 95 96 97 |
# File 'bundle/extensions/extension.rb', line 92 def self.inherited(subclass) super return if subclass.name == "Homebrew::Bundle::Extension" Homebrew::Bundle.register_package_type(subclass) end |
.install_supported? ⇒ Boolean
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.
110 111 112 |
# File 'bundle/extensions/extension.rb', line 110 def self.install_supported? true end |
.install_verb(_name = "", _options = {}) ⇒ String
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.
115 116 117 |
# File 'bundle/extensions/extension.rb', line 115 def self.install_verb(_name = "", = {}) "Installing" end |
.reset! ⇒ void
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.
This method returns an undefined value.
140 |
# File 'bundle/extensions/extension.rb', line 140 def self.reset!; end |
.type ⇒ 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.
100 101 102 |
# File 'bundle/extensions/extension.rb', line 100 def self.type T.cast(const_get(:PACKAGE_TYPE), Symbol) end |