granth green sumo

turkey sandwiches!

Photo Photo Photo Photo Photo anime con

Thorcat 21 January 2009

ruby, thor, github, gist, sake

Spit out the code, Sake style.

$ thor cat:task gem:mate
require "rubygems"
require "rubygems/doc_manager"

class Gem < Thor
  desc "mate GEM", "open GEM folder in TextMate"
  def mate(gem)
    system("mate '#{gemdir(gem)}'")
  end
end

Install thorcat with thor install http://gist.github.com/50043.txt

previously: Gmail SMTP for Rails