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:



564
565
566
567
# File 'cask/cask_loader.rb', line 564

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)


558
559
560
561
# File 'cask/cask_loader.rb', line 558

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