Sha256: 4bc4fd215d6358060051f799c525cff9cda65df3f298d1c281d99b3e0c26aaa2
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
namespace :redis do desc "Installs the Redis server" task :install do on roles :db do execute :sudo, "apt-get -y update" execute :sudo, "apt-get -y install redis-server" end end %w[start stop restart].each do |command| desc "#{command} redis" task command do on roles(:app), in: :sequence, wait: 5 do command_string = "redis #{command}" execute :service, command_string end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano-devops-0.0.7 | lib/capistrano/tasks/redis.rake |
capistrano-devops-0.0.6 | lib/capistrano/tasks/redis.rake |