Sha256: 842766fcd08225910079baaf2c4ea24312a1fcacac9dc50ceb2872eaf71f3d39

Contents?: true

Size: 1.06 KB

Versions: 41

Compression:

Stored size: 1.06 KB

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 "Flush memcached - this assumes memcached is on port 11211"
    task :flush, :roles => [:app], :only => {:memcached => true} do
      sudo "echo 'flush_all' | nc -q 1 localhost 11211"
    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

41 entries across 41 versions & 4 rubygems

Version Path
engineyard-eycap-0.4.14 lib/eycap/recipes/memcached.rb
engineyard-eycap-0.4.15 lib/eycap/recipes/memcached.rb
eycap-0.6.12 lib/eycap/recipes/memcached.rb
eycap-0.6.11 lib/eycap/recipes/memcached.rb
eycap-0.6.10 lib/eycap/recipes/memcached.rb
eycap-0.6.9 lib/eycap/recipes/memcached.rb
eycap-0.6.8 lib/eycap/recipes/memcached.rb
eycap-0.6.7 lib/eycap/recipes/memcached.rb
eycap-0.6.6 lib/eycap/recipes/memcached.rb
eycap-0.6.5 lib/eycap/recipes/memcached.rb
eycap-0.6.4 lib/eycap/recipes/memcached.rb
eycap-0.6.3 lib/eycap/recipes/memcached.rb
eycap-0.6.2 lib/eycap/recipes/memcached.rb
eycap-0.6.1 lib/eycap/recipes/memcached.rb
eycap-0.6.0 lib/eycap/recipes/memcached.rb
eycap-0.5.23 lib/eycap/recipes/memcached.rb
eycap-0.5.22 lib/eycap/recipes/memcached.rb
eycap-0.5.21 lib/eycap/recipes/memcached.rb
eycap-0.5.20 lib/eycap/recipes/memcached.rb
eycap-0.5.19 lib/eycap/recipes/memcached.rb