lib/bin_install/brew.rb in bin_install-0.0.20 vs lib/bin_install/brew.rb in bin_install-0.0.21
- old
+ new
@@ -2,10 +2,11 @@
require 'bin_install/brew/package'
require 'bin_install/brew/service'
module BinInstall
module Brew
+ INSTALL = '/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"'.freeze
def self.require!
if installed?
update!
else
puts 'Homebrew is required.'.red
@@ -15,15 +16,15 @@
end
end
def self.install
puts 'Installing Homebrew...'.white
- system('/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
+ system(INSTALL)
end
def self.install!
puts 'Installing Homebrew...'.white
- BinInstall.system!('/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
+ BinInstall.system!(INSTALL)
end
def self.ask
return if installed?