Class: Homebrew::Bundle::Checker::MacAppStoreChecker Private
- Defined in:
- bundle/mac_app_store_checker.rb
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.
Constant Summary collapse
- PACKAGE_TYPE =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
:mas
- PACKAGE_TYPE_NAME =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
"App"
Instance Method Summary collapse
- #exit_early_check(app_ids_with_names, no_upgrade:) ⇒ Object private
- #format_checkable(entries) ⇒ Object private
- #full_check(app_ids_with_names, no_upgrade:) ⇒ Object private
- #installed_and_up_to_date?(id, no_upgrade: false) ⇒ Boolean private
Methods inherited from Base
#checkable_entries, #failure_reason, #find_actionable
Instance Method Details
#exit_early_check(app_ids_with_names, no_upgrade:) ⇒ 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.
21 22 23 24 25 26 27 |
# File 'bundle/mac_app_store_checker.rb', line 21 def exit_early_check(app_ids_with_names, no_upgrade:) work_to_be_done = app_ids_with_names.find do |id, _name| !installed_and_up_to_date?(id, no_upgrade:) end Array(work_to_be_done) end |
#format_checkable(entries) ⇒ 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.
17 18 19 |
# File 'bundle/mac_app_store_checker.rb', line 17 def format_checkable(entries) checkable_entries(entries).to_h { |e| [e.[:id], e.name] } end |
#full_check(app_ids_with_names, no_upgrade:) ⇒ 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.
29 30 31 32 |
# File 'bundle/mac_app_store_checker.rb', line 29 def full_check(app_ids_with_names, no_upgrade:) app_ids_with_names.reject { |id, _name| installed_and_up_to_date?(id, no_upgrade:) } .map { |_id, name| failure_reason(name, no_upgrade:) } end |
#installed_and_up_to_date?(id, no_upgrade: false) ⇒ 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.
13 14 15 |
# File 'bundle/mac_app_store_checker.rb', line 13 def installed_and_up_to_date?(id, no_upgrade: false) Homebrew::Bundle::MacAppStoreInstaller.app_id_installed_and_up_to_date?(id, no_upgrade:) end |