Sha256: 628931298c367b361c28b14c6e50bff5b90e162ea32aeefcb4f9a627eb22c27b

Contents?: true

Size: 876 Bytes

Versions: 8

Compression:

Stored size: 876 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :memcached do 
    desc "Start memcached"
    task :start, :roles => [:app], :only => {:memcached => true} do
      sudo "/etc/init.d/memcached start"
    end
    desc "Stop memcached"
    task :stop, :roles => [:app], :only => {:memcached => true} do
      sudo "/etc/init.d/memcached stop"
    end
    desc "Restart memcached"
    task :restart, :roles => [:app], :only => {:memcached => true} do
      sudo "/etc/init.d/memcached restart"
    end        
    desc "Symlink the memcached.yml file into place if it exists"
    task :symlink_configs, :roles => [:app], :only => {:memcached => true }, :except => { :no_release => true } do
      run "if [ -f #{shared_path}/config/memcached.yml ]; then ln -nfs #{shared_path}/config/memcached.yml #{latest_release}/config/memcached.yml; fi"
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
engineyard-eycap-0.3.10 lib/eycap/recipes/memcached.rb
engineyard-eycap-0.3.11 lib/eycap/recipes/memcached.rb
engineyard-eycap-0.3.9 lib/eycap/recipes/memcached.rb
engineyard-eycap-0.4.0 lib/eycap/recipes/memcached.rb
engineyard-eycap-0.4.1 lib/eycap/recipes/memcached.rb
engineyard-eycap-0.4.2 lib/eycap/recipes/memcached.rb
gramos-robbie-0.0.1 lib/robbie/recipes/memcached.rb
gramos-robbie-0.0.2 lib/robbie/recipes/memcached.rb