public
Fork of defunkt/cache_fu
Description: Everyone's favorite memcached plugin for ActiveRecord.
Homepage: http://errtheblog.com
Clone URL: git://github.com/technoweenie/cache_fu.git
defunkt (author)
Tue Jan 22 16:27:07 -0800 2008
cache_fu / lib / acts_as_cached / recipes.rb
100644 9 lines (8 sloc) 0.295 kb
1
2
3
4
5
6
7
8
9
Capistrano.configuration(:must_exist).load do
  %w(start stop restart kill status).each do |cmd|
    desc "#{cmd} your memcached servers"
    task "memcached_#{cmd}".to_sym, :roles => :app do
      run "RAILS_ENV=production #{ruby} #{current_path}/script/memcached_ctl #{cmd}"
    end
  end
end