Module: BinInstall::Redis
- Defined in:
- lib/bin_install/redis.rb
Class Method Summary collapse
Class Method Details
.install ⇒ Object
3 4 5 6 7 |
# 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! ⇒ Object
9 10 11 12 13 |
# 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? ⇒ Boolean
15 16 17 |
# File 'lib/bin_install/redis.rb', line 15 def self.installed? Shell.executable_exists?('redis-server') end |