Class: Homebrew::Reinstall::InstallationContext Private

Inherits:
Struct
  • Object
show all
Defined in:
reinstall.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.

struct to keep context of the current installer, keg, formula and option

Instance Attribute Summary collapse

Instance Attribute Details

#formulaObject

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 attribute formula

Returns:

  • (Object)

    the current value of formula



11
12
13
# File 'reinstall.rb', line 11

def formula
  @formula
end

#formula_installerObject

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 attribute formula_installer

Returns:

  • (Object)

    the current value of formula_installer



11
12
13
# File 'reinstall.rb', line 11

def formula_installer
  @formula_installer
end

#kegObject

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 attribute keg

Returns:

  • (Object)

    the current value of keg



11
12
13
# File 'reinstall.rb', line 11

def keg
  @keg
end

#optionsObject

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 attribute options

Returns:

  • (Object)

    the current value of options



11
12
13
# File 'reinstall.rb', line 11

def options
  @options
end