From 25375fd50a9584e55519b94d2babe5494f6f157f Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Tue, 28 Feb 2012 13:01:55 -0500 Subject: [PATCH] minor: git deploy fixes --- Rakefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index 2093b76..4ace521 100644 --- a/Rakefile +++ b/Rakefile @@ -284,12 +284,18 @@ 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 + task :git_prepare, [:version] do |t, args| + g = Git.open(Dir.getwd()) + version = args[:version] + check_version(version) + g.add(VERSION_FILES) + g.commit "RELEASE #{version}" + g.add_tag("#{version}") + end + + task :git_push + g = Git.open(Dir.getwd()) + g.push end task :gems, [:version] do |t, args|