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) ⇒ 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)


20
21
22
23
24
25
# File 'context.rb', line 20

def initialize(debug: false, quiet: false, verbose: false, deferred_environment_expansion: false)
  @debug = debug
  @quiet = quiet
  @verbose = verbose
  @deferred_environment_expansion = deferred_environment_expansion
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)


28
29
30
# File 'context.rb', line 28

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)


43
44
45
# File 'context.rb', line 43

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)


33
34
35
# File 'context.rb', line 33

def quiet?
  @quiet
end

#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)


38
39
40
# File 'context.rb', line 38

def verbose?
  @verbose
end