Class: Cask::CaskLoader::FromURILoader Private

Inherits:
Object
  • Object
show all
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.

Deprecated entry points. They never discover or evaluate source files.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ 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.

Parameters:

Raises:



566
567
568
569
# File 'cask/cask_loader.rb', line 566

def initialize(url)
  CaskLoader.odeprecated "Cask::CaskLoader::FromURILoader.new", "Cask::CaskLoader.from_path"
  raise CaskUnavailableError.new(url, "Loading casks from URLs is unsupported.")
end

Class Method Details

.try_new(_ref, warn: false) ⇒ 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.

Parameters:

  • _ref (String)
  • warn (Boolean) (defaults to: false)

Returns:

  • (nil)


560
561
562
563
# File 'cask/cask_loader.rb', line 560

def self.try_new(_ref, warn: false)
  CaskLoader.odeprecated "Cask::CaskLoader::FromURILoader.try_new", "Cask::CaskLoader.from_path"
  nil
end