publish in csd-0.0.8 vs publish in csd-0.0.10

- old
+ new

@@ -3,14 +3,27 @@ unless ARGV.is_a?(Array) and ARGV.size > 0 puts "Please provide a commit message as argument." exit end -`git status` -`git add .` -`git add -u` -`git commit -m "#{ARGV.first}"` +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 -`rake version:bump:patch` -`rake release` -`rake build` - +[ '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) }