Sha256: 69756d9eabe8c1ab7312321055bc8c7b30316b149f26b5e79abf875bbe5a4903

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

#!/usr/bin/env ruby
require 'fileutils'
require 'optparse'
require 'securerandom'
arg1, INPUT = ARGV
@base_path = Dir.pwd

INPUT = Hash.new
@branch_remote = 'master'


def update_local

	#Update FORCAST GEM
	system("git config --global credential.helper 'cache --timeout 72000000'")
	system("git add .")
	commit = INPUT['commit'] || SecureRandom.hex.to_s
	branch_remote = INPUT['branch_remote'] || @branch_remote
	system("git commit -m #{commit}")
	system("git push origin #{branch_remote}")

end


case arg1

when "update_local" then update_local;

else
	puts "Nada"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forcast-0.0.110 production.rb