Module: SystemCommand::Mixin
- Included in:
- AbstractDownloadStrategy, Cask::Artifact::AbstractUninstall, Cask::Audit, Cask::Quarantine, GitHub, GitHub::API, GitHubPackages, Homebrew::Attestation, Homebrew::BundleVersion, Homebrew::Cmd::List, Homebrew::DevCmd::BumpUnversionedCasks, Homebrew::DevCmd::GenerateManCompletions, Homebrew::DevCmd::Tests, Homebrew::DevCmd::UpdateLicenseData, Homebrew::DevCmd::UpdateMaintainers, Homebrew::DevCmd::UpdateSponsors, Homebrew::Diagnostic::Checks, Homebrew::Livecheck::Strategy::Git, Homebrew::Style, Homebrew::UnversionedCaskChecker, OS::Mac::Keg, Pathname, Readall, SystemConfig, SystemConfig, UnpackStrategy, UnpackStrategy::Dmg, UnpackStrategy::Dmg::Bom, UnpackStrategy::Fossil, UnpackStrategy::Tar, User, Utils::Curl, Utils::Curl, Utils::Git, Utils::Svn, Utils::Tar
- Defined in:
- system_command.rb
Overview
Instance Method Summary collapse
-
#system_command(executable, **options) ⇒ Object
internal
Run a fallible system command.
-
#system_command!(command, **options) ⇒ Object
internal
Run an infallible system command.
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, **) SystemCommand.run(executable, **) 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, **) SystemCommand.run!(command, **) end |