#!/usr/bin/env ruby require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb') require 'readline' include Socialcast branch = current_branch raise "Cannot release reserved branch" if %w{master staging}.include?(branch) assert_tickets_provided exit unless Readline.readline("This will release #{branch} to production. Are you sure (y/n)? ") == 'y' run_cmd 'git update' integrate branch, 'master' update_tickets :branch => branch release_tickets run_cmd "git promote #{ARGV.join(' ')}" run_cmd "git integrate #{ARGV.join(' ')}" run_cmd "grb rm #{branch}"