Sha256: 52c9ac9dc0ba5e19e8a3d400c7b27cfcce3bfc7717d2e2cee6fdd7ca9c3c4219

Contents?: true

Size: 656 Bytes

Versions: 6

Compression:

Stored size: 656 Bytes

Contents

#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
include Socialcast

branch = current_branch
abort("Cannot release reserved branch") if %w{master staging prototype}.include?(branch)

is_quiet = ARGV.delete("--quiet") || ARGV.delete("-q")

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}"

run_cmd "socialcast share '#worklog releasing #{branch} to production #scgitx'" unless is_quiet

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
socialcast-git-extensions-2.2.1 bin/git-release
socialcast-git-extensions-2.2.0 bin/git-release
socialcast-git-extensions-2.1.3 bin/git-release
socialcast-git-extensions-2.1.2 bin/git-release
socialcast-git-extensions-2.1.1 bin/git-release
socialcast-git-extensions-2.1.0 bin/git-release