Skip to content

Instantly share code, notes, and snippets.

@entryway
Created July 31, 2009 16:35
Show Gist options
  • Save entryway/159310 to your computer and use it in GitHub Desktop.
Save entryway/159310 to your computer and use it in GitHub Desktop.
require "integrity"
Integrity.new(File.dirname(__FILE__) + "/config.yml")
project = Integrity::Project.first(:name => "Project Foo")
unless `git ls-remote #{project.uri}`.include?(project.commits.last)
project.build
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment