Sha256: 617fda18157550af680791ea7c3b32a23a67464d057e19f4e5dcd8dae60ab373

Contents?: true

Size: 866 Bytes

Versions: 1

Compression:

Stored size: 866 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 #{release_path}/config/memcached.yml; fi"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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