Sha256: 48c11ff96e37f0bf521c8564d9128c2010a66a9f1e83426a9235337867bc268c
Contents?: true
Size: 540 Bytes
Versions: 6
Compression:
Stored size: 540 Bytes
Contents
#!/usr/bin/env ruby unless ARGV.is_a?(Array) and ARGV.size > 0 puts "Please provide a commit message as argument." exit end def run_command(cmd) puts "================" puts "Running command: #{cmd}" puts "================" ret = '' IO.popen(cmd) do |stdout| stdout.each do |line| puts line ret << line end end ret end [ 'git status', 'git add .', 'git add -u', 'git commit -m "#{ARGV.first}"', 'rake version:bump:patch', 'rake release', 'rake build' ].each { |cmd| run_command(cmd) }
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
csd-0.0.15 | publish |
csd-0.0.14 | publish |
csd-0.0.13 | publish |
csd-0.0.12 | publish |
csd-0.0.11 | publish |
csd-0.0.10 | publish |