Sha256: 78b1399f9315ac9d180ec3a14a031b495ddf1118e9095f93d5fda9a6d72c57d7

Contents?: true

Size: 430 Bytes

Versions: 21

Compression:

Stored size: 430 Bytes

Contents

module BinInstall
  module Redis
    def self.install
      puts 'Installing Redis...'.white
      Brew::Package.install_or_upgrade('redis')
      Brew::Service.start!('redis')
    end

    def self.install!
      puts 'Installing Redis...'.white
      Brew::Package.install_or_upgrade!('redis')
      Brew::Service.start!('redis')
    end

    def self.installed?
      Shell.executable_exists?('redis-server')
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
bin_install-0.0.33 lib/bin_install/redis.rb
bin_install-0.0.32 lib/bin_install/redis.rb
bin_install-0.0.31 lib/bin_install/redis.rb
bin_install-0.0.30 lib/bin_install/redis.rb
bin_install-0.0.29 lib/bin_install/redis.rb
bin_install-0.0.28 lib/bin_install/redis.rb
bin_install-0.0.27 lib/bin_install/redis.rb
bin_install-0.0.26 lib/bin_install/redis.rb
bin_install-0.0.25 lib/bin_install/redis.rb
bin_install-0.0.24 lib/bin_install/redis.rb
bin_install-0.0.23 lib/bin_install/redis.rb
bin_install-0.0.22 lib/bin_install/redis.rb
bin_install-0.0.21 lib/bin_install/redis.rb
bin_install-0.0.20 lib/bin_install/redis.rb
bin_install-0.0.19 lib/bin_install/redis.rb
bin_install-0.0.18 lib/bin_install/redis.rb
bin_install-0.0.17 lib/bin_install/redis.rb
bin_install-0.0.16 lib/bin_install/redis.rb
bin_install-0.0.15 lib/bin_install/redis.rb
bin_install-0.0.14 lib/bin_install/redis.rb