Class: Homebrew::Bundle::Installer::InstallableEntry Private

Inherits:
T::Struct
  • Object
show all
Defined in:
bundle/installer.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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry:, verb:, cls:, install_name:) ⇒ void

Parameters:



# File ''

const :entry, Dsl::Entry
const :verb, String
const :cls, T.class_of(Homebrew::Bundle::PackageType)
prop :install_name, String

Instance Attribute Details

#clsT.class_of(Homebrew::Bundle::PackageType) (readonly)

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.

Returns the value of prop cls.

Returns:



# File ''

const :cls, T.class_of(Homebrew::Bundle::PackageType)

#entryDsl::Entry (readonly)

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.

Returns the value of prop entry.

Returns:



# File ''

const :entry, Dsl::Entry

#install_nameString

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.

Returns the value of prop install_name.

Returns:



# File ''

prop :install_name, String

#verbString (readonly)

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.

Returns the value of prop verb.

Returns:



# File ''

const :verb, String

Instance Method Details

#full_nameString

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.

Returns:



29
30
31
# File 'bundle/installer.rb', line 29

def full_name
  T.cast(options.fetch(:full_name, name), String)
end

#nameString

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.

Returns:



23
# File 'bundle/installer.rb', line 23

def name = entry.name

#optionsHomebrew::Bundle::EntryOptions

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.



26
# File 'bundle/installer.rb', line 26

def options = entry.options

#tap_nameString?

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.

Returns:



34
35
36
# File 'bundle/installer.rb', line 34

def tap_name
  ::Utils.tap_from_full_name(full_name)
end