#!/usr/bin/env ruby begin require 'gitscape' rescue LoadError require 'rubygems' require 'gitscape' end if ARGV.size < 1 puts "*** Improper Usage ***" puts "TODO: write usage help text" exit(1) else case ARGV[0] when "hotfix_start" Gitscape::Base.new.hotfix_start ARGV[1] when "hotfix_finish" Gitscape::Base.new.hotfix_finish ARGV[1] when "release_start" Gitscape::Base.new.release_start when "release_finish" Gitscape::Base.new.release_finish ARGV[1].to_i when "promote_to_qa" Gitscape::Base.new.promote_to_qa ARGV[1].to_i else puts "Unknown command" end end