Sha256: 8c1e2db989dc5c9883e4b46e4ecf89d9a701df92075d09052fa2de4b08297671

Contents?: true

Size: 1.37 KB

Versions: 105

Compression:

Stored size: 1.37 KB

Contents

# Copyright 2006-2008 by Mike Bailey. All rights reserved.
Capistrano::Configuration.instance(:must_exist).load do 
  namespace :deprec do
    namespace :memcache do
      
  set :memcache_ip, '127.0.0.1'
  set :memcache_port, 11211
  set :memcache_memory, 256
  
  # XXX needs thought/work
  task :memcached_start do
    run "memcached -d -m #{memcache_memory} -l #{memcache_ip} -p #{memcache_port}"
  end
  
  # XXX needs thought/work
  task :memcached_stop do
    run "killall memcached"
  end
  
  # XXX needs thought/work
  task :memcached_restart do
    memcached_stop
    memcached_start
  end
  
  task :install_memcached do
    version = 'memcached-1.2.2'
    set :src_package, {
      :file => version + '.tar.gz',   
      :md5sum => 'a08851f7fa7b15e92ee6320b7a79c321  memcached-1.2.2.tar.gz', 
      :dir => version,  
      :url => "http://www.danga.com/memcached/dist/#{version}.tar.gz",
      :unpack => "tar zxf #{version}.tar.gz;",
      :configure => %w{
        ./configure
        --prefix=/usr/local 
        ;
        }.reject{|arg| arg.match '#'}.join(' '),
      :make => 'make;',
      :install => 'make install;',
      :post_install => 'install -b scripts/memcached-init /etc/init.d/memcached;'
    }
    apt.install( {:base => %w(libevent-dev)}, :stable )
    deprec.download_src(src_package, src_dir)
    deprec.install_from_src(src_package, src_dir)
  end
end end
  
end

Version data entries

105 entries across 105 versions & 5 rubygems

Version Path
andyh-deprec-1.99.26 lib/deprec/recipes/memcache.rb
andyh-deprec-1.99.27 lib/deprec/recipes/memcache.rb
isaac-deprec-1.99.30 lib/deprec/recipes/memcache.rb
isaac-deprec-1.99.32 lib/deprec/recipes/memcache.rb
deprec-2.2.3 lib/deprec/recipes/memcache.rb
deprec-2.2.2 lib/deprec/recipes/memcache.rb
deprec-2.2.1 lib/deprec/recipes/memcache.rb
deprec-2.2.0 lib/deprec/recipes/memcache.rb
deprec-2.1.19 lib/deprec/recipes/memcache.rb
deprec-2.1.18 lib/deprec/recipes/memcache.rb
deprec-2.1.17 lib/deprec/recipes/memcache.rb
deprec-2.1.16 lib/deprec/recipes/memcache.rb
le1t0-deprec-2.1.6.064 lib/deprec/recipes/memcache.rb
le1t0-deprec-2.1.6.063 lib/deprec/recipes/memcache.rb
le1t0-deprec-2.1.6.062 lib/deprec/recipes/memcache.rb
le1t0-deprec-2.1.6.061 lib/deprec/recipes/memcache.rb
le1t0-deprec-2.1.6.059 lib/deprec/recipes/memcache.rb
le1t0-deprec-2.1.6.058 lib/deprec/recipes/memcache.rb
deprec-2.1.14 lib/deprec/recipes/memcache.rb
deprec-2.1.13 lib/deprec/recipes/memcache.rb