Created
August 23, 2011 17:58
-
-
Save ajsharp/1166000 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # Usage: land-feature | |
| current_branch = `git branch | grep '\*' | awk '{print $2}'`.chomp | |
| unless current_branch.include?("feature") | |
| puts "You are not current on a feature branch." | |
| exit(1) | |
| end | |
| current_feature_branch = current_branch.split("/").pop | |
| system("git flow feature finish #{current_feature_branch} && git push origin master && bundle exec cap staging deploy") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment