Sha256: f21e30791f902f86fb6cbfd09bced13c00a2ae6a2af4b2fe5deb09fd75c63bd5
Contents?: true
Size: 882 Bytes
Versions: 3
Compression:
Stored size: 882 Bytes
Contents
namespace :rubber do namespace :redis do rubber.allow_optional_tasks(self) after "rubber:install_packages", "rubber:redis:custom_install" task :custom_install, :roles => :redis do custom_package('http://ftp.us.debian.org/debian/pool/main/r/redis/', 'redis-server', '1.2.5-1', '! -x /usr/bin/redis-server') end desc "Stops the redis server" task :stop, :roles => :redis, :on_error => :continue do sudo "/etc/init.d/redis-server stop" end desc "Starts the redis server" task :start, :roles => :redis do sudo "/etc/init.d/redis-server start" end desc "Restarts the redis server" task :restart, :roles => :redis do sudo "/etc/init.d/redis-server restart" end desc "Reloads the redis server" task :reload, :roles => :redis do sudo "/etc/init.d/redis-server restart" end end end
Version data entries
3 entries across 3 versions & 1 rubygems