Sha256: 1b9a04b090ad8d79351fa80fe86bf7bbfc7ef3514b1770df51412419e194c35d

Contents?: true

Size: 877 Bytes

Versions: 3

Compression:

Stored size: 877 Bytes

Contents

namespace :rubber do

  namespace :redis do

    rubber.allow_optional_tasks(self)

    after "rubber:install_packages", "rubber:redis:custom_install"

    task :custom_install, :roles => :redis do
      custom_package('http://ftp.us.debian.org/debian/pool/main/r/redis/', 'redis-server', '1.02-1', '! -x /usr/bin/redis-server')
    end

    desc "Stops the redis server"
    task :stop, :roles => :redis, :on_error => :continue do
      run "/etc/init.d/redis-server stop"
    end

    desc "Starts the redis server"
    task :start, :roles => :redis do
      run "/etc/init.d/redis-server start"
    end

    desc "Restarts the redis server"
    task :restart, :roles => :redis do
      run "/etc/init.d/redis-server restart"
    end

    desc "Reloads the redis server"
    task :reload, :roles => :redis do
      run "/etc/init.d/redis-server restart"
    end

  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
nirvdrum-rubber-1.1.7 generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb
rubber-1.1.7 generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb
rubber-1.1.6 generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb