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
le1t0-deprec-2.1.6.001 lib/deprec/recipes/memcache.rb
deprec-2.1.5 lib/deprec/recipes/memcache.rb
visfleet-deprec-2.1.4.5 lib/deprec/recipes/memcache.rb
visfleet-deprec-2.1.4.4 lib/deprec/recipes/memcache.rb
visfleet-deprec-2.1.4.3 lib/deprec/recipes/memcache.rb
visfleet-deprec-2.1.4.2 lib/deprec/recipes/memcache.rb
visfleet-deprec-2.1.4.1 lib/deprec/recipes/memcache.rb
visfleet-deprec-2.1.4 lib/deprec/recipes/memcache.rb
deprec-2.1.4 lib/deprec/recipes/memcache.rb
deprec-2.1.1 lib/deprec/recipes/memcache.rb
deprec-2.1.0 lib/deprec/recipes/memcache.rb
deprec-2.0.15 lib/deprec/recipes/memcache.rb
deprec-2.0.11 lib/deprec/recipes/memcache.rb
deprec-2.0.13 lib/deprec/recipes/memcache.rb
deprec-2.0.1 lib/deprec/recipes/memcache.rb
deprec-2.0.0 lib/deprec/recipes/memcache.rb
deprec-2.0.10 lib/deprec/recipes/memcache.rb
deprec-2.0.6 lib/deprec/recipes/memcache.rb
deprec-2.0.7 lib/deprec/recipes/memcache.rb
deprec-2.0.3 lib/deprec/recipes/memcache.rb