Sha256: 339b944fb5bfdace98f9d18567c449bbed31605abd46f3cd8bd6508695171e8f

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :memcached do 
    desc "Start memcached"
    task :start, :roles => [:app, :memcached], :only => {:memcached => true} do
      sudo "/etc/init.d/memcached start"
    end
    desc "Stop memcached"
    task :stop, :roles => [:app, :memcached], :only => {:memcached => true} do
      sudo "/etc/init.d/memcached stop"
    end
    desc "Restart memcached"
    task :restart, :roles => [:app, :memcached], :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, :memcached], :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

1 entries across 1 versions & 1 rubygems

Version Path
engineyard-eycap-0.3.8 lib/eycap/recipes/memcached.rb