Sha256: e4cb42b156f81b885d0f54ba90628d67d881da14880dda400d6ca60e94fd2c91
Contents?: true
Size: 663 Bytes
Versions: 11
Compression:
Stored size: 663 Bytes
Contents
#!/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) ticket = ARGV.shift raise 'JIRA ticket is required in order to release this branch' unless ticket exit unless Readline.readline("This will release #{branch} to production. Are you sure (y/n)? ") == 'y' run_cmd 'git update' integrate branch, 'master' update_ticket ticket, {:branch => branch} release_ticket ticket run_cmd "git promote #{ticket}" run_cmd "git integrate #{ticket}" run_cmd "grb rm #{branch}"
Version data entries
11 entries across 11 versions & 1 rubygems