Class: Cask::CaskLoader::FromInstalledPathLoader Private
- Inherits:
-
FromPathLoader
- Object
- AbstractContentLoader
- FromPathLoader
- Cask::CaskLoader::FromInstalledPathLoader
- Defined in:
- cask/cask_loader.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.
Loader which loads a cask from the installed cask file.
Instance Attribute Summary
Attributes inherited from FromPathLoader
#from_installed_caskfile, #path, #token
Attributes inherited from AbstractContentLoader
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(path, token: "", api_fallback: true) ⇒ void constructor private
Methods inherited from FromPathLoader
Methods included from ILoader
Methods included from Utils::Output::Mixin
#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_once, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_cannot_install, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_removed, #pretty_uninstalled, #pretty_unmarked, #pretty_upgradable, #pretty_warning
Constructor Details
#initialize(path, token: "", api_fallback: true) ⇒ 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.
525 526 527 528 529 530 531 532 |
# File 'cask/cask_loader.rb', line 525 def initialize(path, token: "", api_fallback: true) super(path, token:) installed_tap = Cask.new(@token).tab.tap @tap = installed_tap if installed_tap @from_installed_caskfile = T.let(true, T::Boolean) @api_fallback = api_fallback end |
Class Method Details
.try_new(_ref, warn: false, api_fallback: true) ⇒ nil
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.
519 520 521 522 |
# File 'cask/cask_loader.rb', line 519 def self.try_new(_ref, warn: false, api_fallback: true) CaskLoader.odeprecated "Cask::CaskLoader::FromInstalledPathLoader.try_new", "Cask::CaskLoader.load_from_installed_caskfile" nil end |