2016-09-24 13:52:43 +02:00
|
|
|
module Hbc
|
|
|
|
class CLI
|
|
|
|
class Update < Base
|
|
|
|
def self.run(*_ignored)
|
|
|
|
result = 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
|
2016-08-18 22:11:42 +03:00
|
|
|
|
2016-09-24 13:52:43 +02:00
|
|
|
def self.help
|
|
|
|
"a synonym for 'brew update'"
|
|
|
|
end
|
|
|
|
end
|
2016-08-18 22:11:42 +03:00
|
|
|
end
|
|
|
|
end
|