Module: SystemCommand::Helpers Private
- Included in:
- Formula
- Defined in:
- system_command.rb
Overview
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.
Positional command helpers used by the Formula DSL.
Instance Method Summary collapse
- #quiet_system(cmd, argv0 = nil, *args) ⇒ Boolean private
- #safe_system(cmd, argv0 = nil, *args, **options) ⇒ void private
Instance Method Details
#quiet_system(cmd, argv0 = nil, *args) ⇒ 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.
104 105 106 107 108 |
# File 'system_command.rb', line 104 def quiet_system(cmd, argv0 = nil, *args) return SystemCommand.quiet_system(cmd, *args) if argv0.nil? SystemCommand.quiet_system(cmd, argv0, *args) end |
#safe_system(cmd, argv0 = nil, *args, **options) ⇒ 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.
91 92 93 94 95 |
# File 'system_command.rb', line 91 def safe_system(cmd, argv0 = nil, *args, **) return SystemCommand.safe_system(cmd, *args, **) if argv0.nil? SystemCommand.safe_system(cmd, argv0, *args, **) end |