This file contains 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
# response to http://jumpstartlab.com/news/archives/2013/04/23/the-death-of-ifs | |
#----------------- | |
# Commands : | |
#----------------- | |
class Command | |
class Quit ; def execute ; exit end end | |
class Invalid ; def execute ; puts 'invalid command' end end | |
class Tweeting ; def execute ; puts "tweeting" end end |
This file contains 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
--- | |
- name: install rb-installer | |
action: shell curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
- name: update PATH in ~/.bash_profile for rb-env | |
action: lineinfile dest=/home/$user/.bash_profile line=export\ PATH="$HOME/.rbenv/bin:$PATH" regexp=PATH.*rbenv | |
- name: add rb-env init to ~/.bash_profile | |
action: lineinfile dest=/home/$user/.bash_profile line='eval "$(rbenv init -)"' regexp=eval.*rbenv | |
This file contains 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
# put this in /lib/resque.rb | |
require 'mail' | |
module Emailer | |
class Send | |
@queue = :issue_mailer | |
def self.perform(addressee, subject, body) |
NewerOlder