Skip to content

Instantly share code, notes, and snippets.

View shayfrendt's full-sized avatar

Shay Frendt shayfrendt

View GitHub Profile
@blahutka
blahutka / sprinkle.rb
Created August 23, 2011 19:10
Vagrant - Sprinkle provisioner
module Vagrant
module Provisioners
class Sprinkle < Base
register :sprinkle
class Config < Vagrant::Config::Base
attr_accessor :cookbooks_path
end
def prepare
@thbar
thbar / deploy.rb
Created September 7, 2010 18:18
Resque + god + capistrano recipe
# note - you may need to split into a before-deploy (stop) and after-deploy (start) depending on your setup
desc "Hot-reload God configuration for the Resque worker"
deploy.task :reload_god_config do
sudo "god stop resque"
sudo "god load #{File.join deploy_to, 'current', 'config', 'resque.god'}"
sudo "god start resque"
end
after 'deploy:update_code', 'deploy:update_shared_symlinks'