brew/Library/Homebrew/cmd/postinstall.rb

31 lines
550 B
Ruby
Raw Normal View History

require "sandbox"
require "formula_installer"
2019-04-17 18:25:08 +09:00
require "cli/parser"
module Homebrew
2016-09-26 01:44:51 +02:00
module_function
def postinstall_args
Homebrew::CLI::Parser.new do
usage_banner <<~EOS
`postinstall` <formula>
Rerun the post-install steps for <formula>.
EOS
switch :verbose
switch :force
switch :debug
end
end
def postinstall
postinstall_args.parse
ARGV.resolved_formulae.each do |f|
ohai "Postinstalling #{f}"
fi = FormulaInstaller.new(f)
fi.post_install
end
end
end