Module: Homebrew::Bundle::Commands::Install Private

Defined in:
bundle/commands/install.rb

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

Class Method Summary collapse

Class Method Details

.dslDsl?

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:



32
33
34
35
# File 'bundle/commands/install.rb', line 32

def self.dsl
  @dsl ||= T.let(nil, T.nilable(Dsl))
  @dsl
end

.run(global: false, file: nil, no_lock: false, no_upgrade: false, verbose: false, force: false, quiet: 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.

This method returns an undefined value.

Parameters:

  • global (Boolean) (defaults to: false)
  • file (String, nil) (defaults to: nil)
  • no_lock (Boolean) (defaults to: false)
  • no_upgrade (Boolean) (defaults to: false)
  • verbose (Boolean) (defaults to: false)
  • force (Boolean) (defaults to: false)
  • quiet (Boolean) (defaults to: false)


22
23
24
25
26
27
28
29
# File 'bundle/commands/install.rb', line 22

def self.run(global: false, file: nil, no_lock: false, no_upgrade: false, verbose: false, force: false,
             quiet: false)
  @dsl = Brewfile.read(global:, file:)
  Homebrew::Bundle::Installer.install!(
    @dsl.entries,
    global:, file:, no_lock:, no_upgrade:, verbose:, force:, quiet:,
  ) || exit(1)
end