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