This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Fixnum | |
| def fizzbuzz | |
| return :fizzbuzz if self % 15 == 0 | |
| return :buzz if self % 5 == 0 | |
| return :fizz if self % 3 == 0 | |
| self | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :deploy do | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && bundle exec unicorn -c #{current_path}/config/unicorn.rb -E production -D" | |
| end | |
| task :stop, :roles => :app, :except => { :no_release => true } do | |
| run "kill -KILL -s QUIT `cat #{shared_path}/pids/unicorn.pid`" | |
| end | |
| task :restart, :roles => :app, :except => { :no_release => true } do |
NewerOlder