Skip to content

Instantly share code, notes, and snippets.

@jamesgecko
Created November 29, 2012 17:23
Show Gist options
  • Select an option

  • Save jamesgecko/4170554 to your computer and use it in GitHub Desktop.

Select an option

Save jamesgecko/4170554 to your computer and use it in GitHub Desktop.
function gpt
set before_gems (md5 Gemfile)
set before_migrations (ls -l ./db/migrate | wc -l)
git pull tapjoy master
set after_gems (md5 Gemfile)
set after_migrations (ls -l ./db/migrate | wc -l)
if [ $before_gems != $after_gems ]
bundle install
end
if [ $before_migrations != $after_migrations ]
rake db:migrate
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment