Created
September 19, 2009 08:44
-
-
Save nathos/189444 to your computer and use it in GitHub Desktop.
Pirate-ize for Mac OS X Automator
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
input = STDIN.read | |
input.strip! | |
require 'rubygems' | |
if !Gem.available?("mdeering-booty") | |
puts "Please install the 'Booty' gem: http://github.com/mdeering/booty" | |
else | |
require 'booty' | |
puts Booty.call(input) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment