minor: deploy git task in progress

This commit is contained in:
Tyler Brock 2012-02-28 12:54:50 -05:00
parent cf85bd5554
commit 136e8113e8
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,8 @@ end
require 'fileutils' require 'fileutils'
require 'rake/testtask' require 'rake/testtask'
require 'rake' require 'rake'
require 'git'
require 'logger'
begin begin
require 'ci/reporter/rake/test_unit' require 'ci/reporter/rake/test_unit'
rescue LoadError rescue LoadError
@ -282,6 +284,14 @@ namespace :deploy do
change_version(args[:version]) change_version(args[:version])
end 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| task :gems, [:version] do |t, args|
check_version(args[:version]) check_version(args[:version])
check_gem_list_existence(args[:version]) check_gem_list_existence(args[:version])