mirror of
https://github.com/fluencelabs/redis
synced 2025-06-27 16:01:32 +00:00
Ruby client lib updated to the latest git version
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
# Inspired by rabbitmq.rake the Redbox project at http://github.com/rick/redbox/tree/master
|
||||
require 'fileutils'
|
||||
require 'open-uri'
|
||||
|
||||
class RedisRunner
|
||||
|
||||
@ -106,10 +107,8 @@ namespace :dtach do
|
||||
unless File.exists?('/tmp/dtach-0.8.tar.gz')
|
||||
require 'net/http'
|
||||
|
||||
Net::HTTP.start('superb-west.dl.sourceforge.net') do |http|
|
||||
resp = http.get('/sourceforge/dtach/dtach-0.8.tar.gz')
|
||||
open('/tmp/dtach-0.8.tar.gz', 'wb') do |file| file.write(resp.body) end
|
||||
end
|
||||
url = 'http://downloads.sourceforge.net/project/dtach/dtach/0.8/dtach-0.8.tar.gz'
|
||||
open('/tmp/dtach-0.8.tar.gz', 'wb') do |file| file.write(open(url).read) end
|
||||
end
|
||||
|
||||
unless File.directory?('/tmp/dtach-0.8')
|
||||
@ -123,4 +122,4 @@ namespace :dtach do
|
||||
puts 'Dtach successfully installed to /usr/bin.'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user