Sha256: 87e06399be943dfcbeb7f0de65fbab8dbf89bbf7b5725b510c3ca737f212e51a

Contents?: true

Size: 339 Bytes

Versions: 9

Compression:

Stored size: 339 Bytes

Contents

namespace :setup do

  task :cache  do
    on roles(:cache) do
      unless test "[ -f /etc/redis/redis.conf ]"
        install "redis-server"
        upload_as :root, file("redis/redis.conf"), "/etc/redis/redis.conf"
        sudo 'nohup /etc/init.d/redis-server restart'
      end
    end
  end

end


after "setup:system", "setup:cache"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
capistrano-cluster-0.0.18 tasks/roles/cache.rake
capistrano-cluster-0.0.17 tasks/roles/cache.rake
capistrano-cluster-0.0.16 tasks/roles/cache.rake
capistrano-cluster-0.0.15 tasks/roles/cache.rake
capistrano-cluster-0.0.14 tasks/roles/cache.rake
capistrano-cluster-0.0.13 tasks/roles/cache.rake
capistrano-cluster-0.0.12 tasks/roles/cache.rake
capistrano-cluster-0.0.11 tasks/roles/cache.rake
capistrano-cluster-0.0.10 tasks/roles/cache.rake