test/dummy/lib/redis_instance.rb
# Returns true if redis is installed, otherwise false
Returns true if redis is installed, otherwise false
Returns true if redis is installed otherwise false
def redis_installed?
        result = `which redis-server`.gsub("\n", "")
        puts "redis-server-binary not found" if result.empty?
        result.empty? ? false : true
      end
def redis_installed? result = ` which redis-server ` . gsub ( "\n" , "" ) puts "redis-server-binary not found" if result . empty? result . empty? ? false : true end
Returns true if redis is installed, otherwise false
Returns true if redis is installed otherwise false