module BinInstall::Redis
Public Class Methods
install()
click to toggle source
# File lib/bin_install/redis.rb, line 3 def self.install puts 'Installing Redis...'.white Brew::Package.install_or_upgrade('redis') Brew::Service.start!('redis') end
install!()
click to toggle source
# File lib/bin_install/redis.rb, line 9 def self.install! puts 'Installing Redis...'.white Brew::Package.install_or_upgrade!('redis') Brew::Service.start!('redis') end
installed?()
click to toggle source
# File lib/bin_install/redis.rb, line 15 def self.installed? Shell.executable_exists?('redis-server') end