Skip to content

Instantly share code, notes, and snippets.

View mbabineau's full-sized avatar

Mike Babineau mbabineau

  • Second Measure
  • San Francisco, CA
View GitHub Profile
@mbabineau
mbabineau / knife.rb
Created February 21, 2011 02:29 — forked from jbz/knife.rb
# This knife.rb orig. provided by jtimberman@opscode.com - but any mistakes are mine!
current_dir = File.dirname(__FILE__)
platform = "https://api.opscode.com/organizations"
require 'grit'
branch = Grit::Repo.new("#{current_dir}/..").head.name
case branch