Module: SystemCommand::Mixin

Overview

This module is part of an internal API. This module may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Helper functions for calling run.

Instance Method Summary collapse

Instance Method Details

#system_command(executable, **options) ⇒ Object

This method is part of an internal API. This method may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Run a fallible system command.



24
25
26
# File 'system_command.rb', line 24

def system_command(executable, **options)
  SystemCommand.run(executable, **options)
end

#system_command!(command, **options) ⇒ Object

This method is part of an internal API. This method may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Run an infallible system command.



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

def system_command!(command, **options)
  SystemCommand.run!(command, **options)
end