Sha256: 143d38f7ed831a403f6bbaf3695984ec1f3e7ba0316f59bcff235ad95640b97b

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

Capistrano::Configuration.instance.load do

  namespace :memcache do
    %(start stop restart status).each do |step|
      desc "#{step} memcache"
      task step do
        try_sudo "service memcached #{step}"
      end
    end

    desc "Flush memcache"
    task :flush do
      run %Q{echo "flush_all" | nc -q 2 127.0.0.1 11211}
    end

    after "deploy:restart", "memcache:flush"
    after "deploy:start", "memcache:flush"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caploy-0.1.2 lib/caploy/recipes/memcache.rb