Skip to content

Instantly share code, notes, and snippets.

namespace :deploy do
desc "Hot-reload God configuration for the Resque worker"
task :reload_god_config do
sudo "god stop resque"
sudo "god load #{File.join(deploy_to, 'current', 'config', 'resque-' + rails_env + '.god')}"
sudo "god start resque"
end
end
# append to the bottom:
@atkolkma
atkolkma / gist:6580427
Last active December 23, 2015 04:29 — forked from anonymous/gist:6580417
class FizzBuzz
require 'json'
def initialize (input)
@max = input
end
def modulo_parse (n)
if n % 15 == 0