lib/bin_install/redis.rb in bin_install-0.0.6 vs lib/bin_install/redis.rb in bin_install-0.0.9

- old
+ new

@@ -1,13 +1,17 @@ module BinInstall module Redis def self.install puts 'Installing Redis...'.white - Brew.install_or_upgrade('redis') + Brew::Package.install_or_upgrade('redis') end def self.install! puts 'Installing Redis...'.white - Brew.install_or_upgrade!('redis') + Brew::Package.install_or_upgrade!('redis') + end + + def self.installed? + Shell.executable_exists?('redis-server') end end end