Sha256: f84c78c54616cad83cd08789a8a5eb033cf10ad9fa221fab5d6c915b65dd0614

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.01-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 & 1 rubygems

Version Path
rubber-1.1.5 generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb
rubber-1.1.4 generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb
rubber-1.1.3 generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb