Sha256: 0a9b66158b3d2e0fa9bdb00b56cad43e3e7701b3cbcfc896f95ce173a6d9c5d2

Contents?: true

Size: 352 Bytes

Versions: 16

Compression:

Stored size: 352 Bytes

Contents

Capistrano::Configuration.instance.load do

  namespace :memcache do
    %w(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
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
caploy-0.2.5 lib/caploy/recipes/memcache.rb
caploy-0.2.4 lib/caploy/recipes/memcache.rb
caploy-0.2.3 lib/caploy/recipes/memcache.rb
caploy-0.2.2 lib/caploy/recipes/memcache.rb
caploy-0.2.1 lib/caploy/recipes/memcache.rb
caploy-0.2.0 lib/caploy/recipes/memcache.rb
caploy-0.1.12 lib/caploy/recipes/memcache.rb
caploy-0.1.11 lib/caploy/recipes/memcache.rb
caploy-0.1.10 lib/caploy/recipes/memcache.rb
caploy-0.1.9 lib/caploy/recipes/memcache.rb
caploy-0.1.8 lib/caploy/recipes/memcache.rb
caploy-0.1.7 lib/caploy/recipes/memcache.rb
caploy-0.1.6 lib/caploy/recipes/memcache.rb
caploy-0.1.5 lib/caploy/recipes/memcache.rb
caploy-0.1.4 lib/caploy/recipes/memcache.rb
caploy-0.1.3 lib/caploy/recipes/memcache.rb