Sha256: a80e3c1c5e8c45af2490268e035a2b19345ce9085775aa2a44b437d8aa3d7571

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

Capistrano::Configuration.instance(true).load do

  set :memcache_init_path, "/etc/init.d/memcached"

  # ===============================================================
  # SERVER MANAGEMENT
  # ===============================================================

  namespace :memcache do
    
    desc 'Installs memcache and the ruby gem'
    task :install, :roles => :app do
      puts 'Installing memcache'
      try_sudo 'apt-get install memcached'
      try_sudo "#{base_ruby_path}/bin/gem install memcache-client --no-ri --no-rdoc"
      memcache.start
    end
    
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
grosser-cap-recipes-0.2.19 lib/cap_recipes/tasks/memcache/install.rb
grosser-cap-recipes-0.2.21 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.2.19 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.2.20 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.2.21 lib/cap_recipes/tasks/memcache/install.rb