Sha256: 529a7f7919fcd1e709e8bdf5e6d6f0b5e830a34ce2aa5106efb9e838a14e9a8d
Contents?: true
Size: 868 Bytes
Versions: 5
Compression:
Stored size: 868 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :memcached do desc "Start memcached" task :start, :roles => :app, :only => {:memcached => true} do sudo "/etc/init.d/memcached start" end desc "Stop memcached" task :stop, :roles => :app, :only => {:memcached => true} do sudo "/etc/init.d/memcached stop" end desc "Restart memcached" task :restart, :roles => :app, :only => {:memcached => true} do sudo "/etc/init.d/memcached restart" end desc "Symlink the memcached.yml file into place if it exists" task :symlink_configs, :roles => :app, :only => {:memcached => true }, :except => { :no_release => true } do run "if [ -f #{shared_path}/config/memcached.yml ]; then ln -nfs #{shared_path}/config/memcached.yml #{latest_release}/config/memcached.yml; fi" end end end
Version data entries
5 entries across 5 versions & 1 rubygems