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.

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)


197
198
199
# File 'install_steps.rb', line 197

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:



202
203
204
205
206
207
208
209
210
# File 'install_steps.rb', line 202

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