Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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")
Add Comment
Please, Sign In to add comment