lib/caploy/recipes/memcache.rb in caploy-0.2.5 vs lib/caploy/recipes/memcache.rb in caploy-1.0.0

- old
+ new

@@ -1,17 +1,13 @@ -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 +namespace :memcache do + %w(start stop restart status).each do |step| + desc "#{step} memcache" + task step do + try_sudo "service memcached #{step}" end - - desc "Flush memcache" - task :flush do - run %Q{echo "flush_all" | nc -q 2 127.0.0.1 11211} - end end + desc "Flush memcache" + task :flush do + run %Q{echo "flush_all" | nc -q 2 127.0.0.1 11211} + end end