Class: CaskLock Private

Inherits:
LockFile show all
Defined in:
lock_file/cask_lock.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.

A lock file for a cask.

Instance Attribute Summary

Attributes inherited from LockFile

#path

Instance Method Summary collapse

Methods inherited from LockFile

#lock, #unlock, #with_lock

Methods included from Utils::Output::Mixin

#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_outdated, #pretty_uninstalled, #pretty_upgradable

Constructor Details

#initialize(cask_token) ⇒ 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:



7
8
9
# File 'lock_file/cask_lock.rb', line 7

def initialize(cask_token)
  super(:cask, HOMEBREW_PREFIX/"Caskroom/#{cask_token}")
end