From 136e8113e89bab4b68edbc34a3d4a7b388d54226 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Tue, 28 Feb 2012 12:54:50 -0500 Subject: [PATCH] minor: deploy git task in progress --- Rakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Rakefile b/Rakefile index fa7533d..2093b76 100644 --- a/Rakefile +++ b/Rakefile @@ -6,6 +6,8 @@ end require 'fileutils' require 'rake/testtask' require 'rake' +require 'git' +require 'logger' begin require 'ci/reporter/rake/test_unit' rescue LoadError @@ -282,6 +284,14 @@ namespace :deploy do change_version(args[:version]) end + task :git, [:version] do |t, args| + g = Git.open(Dir.getwd(), :log => Logger.new(STDOUT)) + check_version(args[:version]) + g.commit "RELEASE #{:version}" + g.add_tag(:version) + #g.push + end + task :gems, [:version] do |t, args| check_version(args[:version]) check_gem_list_existence(args[:version])