83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# File 'lib/bashman.rb', line 83
def add_homebrew(verbose = false)
@homebrew = Profile::HomeBrew.new
puts "Looking for Homebrew" if verbose
if @homebrew.installed?
puts "Homebrew executable found" if verbose
puts "Getting installed homebrew packages and casks"
@homebrew.get_installed
if verbose
puts "Found formulae:"
@homebrew.formulae.each {|f| puts " #{f}"}
puts "Found casks:"
@homebrew.casks.each {|c| puts " #{c}"}
end
else
puts "Homebrew executable not found"
end
end
|