minor: git deploy fixes

This commit is contained in:
Tyler Brock 2012-02-28 13:01:55 -05:00
parent 136e8113e8
commit 25375fd50a

View File

@ -284,12 +284,18 @@ namespace :deploy do
change_version(args[:version]) change_version(args[:version])
end end
task :git, [:version] do |t, args| task :git_prepare, [:version] do |t, args|
g = Git.open(Dir.getwd(), :log => Logger.new(STDOUT)) g = Git.open(Dir.getwd())
check_version(args[:version]) version = args[:version]
g.commit "RELEASE #{:version}" check_version(version)
g.add_tag(:version) g.add(VERSION_FILES)
#g.push g.commit "RELEASE #{version}"
g.add_tag("#{version}")
end
task :git_push
g = Git.open(Dir.getwd())
g.push
end end
task :gems, [:version] do |t, args| task :gems, [:version] do |t, args|