Sha256: 3273814548c05b9adbba30ae7621638c20ce1a54f8d2aa177d0ed5290fe641b6

Contents?: true

Size: 976 Bytes

Versions: 23

Compression:

Stored size: 976 Bytes

Contents

Execute.define_task do
desc "redis-install", 'Install the latest verison of Redis from Github (requires git, duh)'
  def redis_install
    redis_about
    redis_download
    redis_make

    unless windows?
      ENV['PREFIX'] and bin_dir = "#{ENV['PREFIX']}/bin" or bin_dir = "#{RedisRunner.prefix}bin"

      mk_bin_dir(bin_dir)

      %w(redis-benchmark redis-cli redis-server).each do |bin|
        system "cp /tmp/redis/src/#{bin} #{bin_dir}"
      end #do

      puts "Installed redis-benchmark, redis-cli and redis-server to #{bin_dir}"

      ENV['PREFIX'] and conf_dir = "#{ENV['PREFIX']}/etc" or conf_dir = "#{RedisRunner.prefix}etc"
      unless File.exists?("#{conf_dir}/redis.conf")
        system "mkdir #{conf_dir}" unless File.exists?("#{conf_dir}")
        system "cp /tmp/redis/redis.conf #{conf_dir}/redis.conf"
        puts "Installed redis.conf to #{conf_dir} \n You should look at this file!"
      end #unless
    end #unless
  end #redis_install
end #do

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 commands/redis/redis_install.rb
rhoconnect-7.5.1 commands/redis/redis_install.rb
rhoconnect-7.4.1 commands/redis/redis_install.rb
rhoconnect-7.1.17 commands/redis/redis_install.rb
rhoconnect-6.2.0 commands/redis/redis_install.rb
rhoconnect-6.0.11 commands/redis/redis_install.rb
rhoconnect-5.5.18 commands/redis/redis_install.rb
rhoconnect-5.5.17 commands/redis/redis_install.rb
rhoconnect-5.5.15 commands/redis/redis_install.rb
rhoconnect-5.5.0.22 commands/redis/redis_install.rb
rhoconnect-5.5.2 commands/redis/redis_install.rb
rhoconnect-5.5.0.7 commands/redis/redis_install.rb
rhoconnect-5.5.0.3 commands/redis/redis_install.rb
rhoconnect-5.5.0 commands/redis/redis_install.rb
rhoconnect-5.1.1 commands/redis/redis_install.rb
rhoconnect-4.0.4 commands/redis/redis_install.rb
rhoconnect-4.0.3 commands/redis/redis_install.rb
rhoconnect-4.0.2 commands/redis/redis_install.rb
rhoconnect-4.0.1 commands/redis/redis_install.rb
rhoconnect-4.0.0 commands/redis/redis_install.rb