mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-16 14:26:53 -06:00
and corresponding testing_env.rb. * recast HOMEBREW_BREW_FILE as Hbc.homebrew_executable, defined in Hbc::Locations * recast HOMEBREW_REPOSITORY as Hbc.homebrew_repository * recast HOMEBREW_PREFIX as Hbc.homebrew_prefix * remove HOMEBREW_LIBRARY * recast existing Hbc.tapspath as Hbc.homebrew_tapspath to match new methods fixes #8705
16 lines
483 B
Ruby
16 lines
483 B
Ruby
class Hbc::CLI::Update < Hbc::CLI::Base
|
|
def self.run(*_ignored)
|
|
result = Hbc::SystemCommand.run(Hbc.homebrew_executable,
|
|
:args => %w{update})
|
|
# todo: separating stderr/stdout is undesirable here.
|
|
# Hbc::SystemCommand should have an option for plain
|
|
# unbuffered output.
|
|
print result.stdout
|
|
$stderr.print result.stderr
|
|
exit result.exit_status
|
|
end
|
|
|
|
def self.help
|
|
"a synonym for 'brew update'"
|
|
end
|
|
end
|