| 
									
										
										
										
											2016-09-08 09:05:00 +01:00
										 |  |  | #:  * `postinstall` <formula>: | 
					
						
							|  |  |  | #:    Rerun the post-install steps for <formula>. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-04-13 18:16:27 +08:00
										 |  |  | require "sandbox" | 
					
						
							| 
									
										
										
										
											2018-05-12 13:52:40 +02:00
										 |  |  | require "formula_installer" | 
					
						
							| 
									
										
										
										
											2018-11-11 20:17:33 +05:30
										 |  |  | require "cli_parser" | 
					
						
							| 
									
										
										
										
											2015-04-13 18:16:27 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-18 22:41:47 -05:00
										 |  |  | module Homebrew | 
					
						
							| 
									
										
										
										
											2016-09-26 01:44:51 +02:00
										 |  |  |   module_function | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-11 20:17:33 +05:30
										 |  |  |   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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-09-01 13:56:35 +01:00
										 |  |  |   def postinstall | 
					
						
							| 
									
										
										
										
											2018-11-11 20:17:33 +05:30
										 |  |  |     postinstall_args.parse | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-03 09:00:17 +01:00
										 |  |  |     ARGV.resolved_formulae.each do |f| | 
					
						
							|  |  |  |       ohai "Postinstalling #{f}" | 
					
						
							| 
									
										
										
										
											2018-05-12 13:52:40 +02:00
										 |  |  |       fi = FormulaInstaller.new(f) | 
					
						
							|  |  |  |       fi.post_install | 
					
						
							| 
									
										
										
										
											2015-04-13 18:16:27 +08:00
										 |  |  |     end | 
					
						
							| 
									
										
										
										
											2013-09-01 13:56:35 +01:00
										 |  |  |   end | 
					
						
							|  |  |  | end |