Sha256: e51a52d1489fa08036b0871161c3b6fdaefee191d1993bc3b7f37a7ac33c1d94
Contents?: true
Size: 770 Bytes
Versions: 10
Compression:
Stored size: 770 Bytes
Contents
#!/usr/bin/env ruby require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb') include Socialcast branch = current_branch raise "Cannot release reserved branch" if %w{master staging prototype}.include?(branch) is_quiet = ARGV.delete("--quiet") || ARGV.delete("-q") tickets = assert_tickets_provided(ARGV, branch) exit unless HighLine.agree("<%= color('Release #{branch} to production? (y/n)', :green) %>") run_cmd 'git update' integrate branch, 'master' update_tickets tickets, :branch => branch release_tickets tickets integrate branch, 'staging' integrate 'staging', 'prototype' run_cmd "git checkout master" run_cmd "grb rm #{branch}" run_cmd "socialcast share '#worklog releasing #{branch} to production #scgitx'" unless is_quiet
Version data entries
10 entries across 10 versions & 1 rubygems