minor: git deploy fixes

This commit is contained in:
Tyler Brock 2012-02-28 13:01:55 -05:00
parent 136e8113e8
commit 25375fd50a
1 changed files with 12 additions and 6 deletions

View File

@ -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|