#!/usr/bin/env ruby require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb') include Socialcast::Gitx include Socialcast::Git branch = current_branch abort("Cannot release reserved branch") if %w{master staging prototype}.include?(branch) exit unless HighLine.agree("<%= color('Release #{branch} to production? (y/n)', :green) %>") run_cmd 'git update' integrate branch, 'master' integrate branch, 'staging' integrate 'staging', 'prototype' run_cmd "git checkout master" run_cmd "grb rm #{branch}" share "#worklog releasing #{branch} to production #scgitx"