Class: Context::ContextStruct Private

Inherits:
Object
  • Object
show all
Defined in:
context.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 describing the current execution context.

Instance Method Summary collapse

Constructor Details

#initialize(debug: false, quiet: false, verbose: false, deferred_environment_expansion: false, tolerate_formula_load_errors: false) ⇒ 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:

  • debug (Boolean) (defaults to: false)
  • quiet (Boolean) (defaults to: false)
  • verbose (Boolean) (defaults to: false)
  • deferred_environment_expansion (Boolean) (defaults to: false)
  • tolerate_formula_load_errors (Boolean) (defaults to: false)


21
22
23
24
25
26
27
28
# File 'context.rb', line 21

def initialize(debug: false, quiet: false, verbose: false, deferred_environment_expansion: false,
               tolerate_formula_load_errors: false)
  @debug = debug
  @quiet = quiet
  @verbose = verbose
  @deferred_environment_expansion = deferred_environment_expansion
  @tolerate_formula_load_errors = tolerate_formula_load_errors
end

Instance Method Details

#debug? ⇒ Boolean

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:

  • (Boolean)


31
32
33
# File 'context.rb', line 31

def debug?
  @debug
end

#deferred_environment_expansion? ⇒ Boolean

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:

  • (Boolean)


46
47
48
# File 'context.rb', line 46

def deferred_environment_expansion?
  @deferred_environment_expansion
end

#quiet? ⇒ Boolean

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:

  • (Boolean)


36
37
38
# File 'context.rb', line 36

def quiet?
  @quiet
end

#tolerate_formula_load_errors? ⇒ Boolean

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:

  • (Boolean)


51
# File 'context.rb', line 51

def tolerate_formula_load_errors? = @tolerate_formula_load_errors

#verbose? ⇒ Boolean

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:

  • (Boolean)


41
42
43
# File 'context.rb', line 41

def verbose?
  @verbose
end