Class: Homebrew::InstallSteps::Runner Private

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

Constant Summary collapse

CONTENT_PATH_TOKENS =

This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.

Path tokens reuse the step base resolution; HOMEBREW_PREFIX, version and version.major_minor are resolved separately. Anything else is left verbatim so literal braces in templates are never rewritten.

T.let(
  %w[prefix opt_prefix bin var etc pkgetc staged_path appdir].freeze,
  T::Array[String],
)

Instance Method Summary collapse

Constructor Details

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

  • context (T.untyped)


271
272
273
# File 'install_steps.rb', line 271

def initialize(context:)
  @context = context
end

Instance Method Details

#run(steps, phase: :install) ⇒ 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.

This method returns an undefined value.

Parameters:



276
277
278
279
280
281
282
283
284
# File 'install_steps.rb', line 276

def run(steps, phase: :install)
  DSL.normalise_steps(steps).each do |step|
    if phase == :uninstall
      run_uninstall_step(step)
    else
      run_install_step(step)
    end
  end
end