Sha256: a9cf1b37530733cb01d3e6da058820f887ece9aa091ce25704d1d96940705be1

Contents?: true

Size: 526 Bytes

Versions: 12

Compression:

Stored size: 526 Bytes

Contents

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

  # ===============================================================
  # 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

12 entries across 12 versions & 1 rubygems

Version Path
nesquena-cap-recipes-0.3.0 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.11 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.12 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.13 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.15 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.2 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.3 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.4 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.5 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.7 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.8 lib/cap_recipes/tasks/memcache/install.rb
nesquena-cap-recipes-0.3.9 lib/cap_recipes/tasks/memcache/install.rb