aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2010-11-16 16:14:53 -0800
committerCarl Lerche <me@carllerche.com>2010-11-16 17:19:47 -0800
commit482790db6ce85b79a74b4f0f837fc848613daa4a (patch)
tree4851251dbf8a34265637399072efd3d37dfa9fa4 /tasks
parentdab1d8dcc6030a5c1f5e88744d3c40d771be23a3 (diff)
downloadrails-482790db6ce85b79a74b4f0f837fc848613daa4a.tar.gz
rails-482790db6ce85b79a74b4f0f837fc848613daa4a.tar.bz2
rails-482790db6ce85b79a74b4f0f837fc848613daa4a.zip
Add a task to commit the changes
Diffstat (limited to 'tasks')
-rw-r--r--tasks/release.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/tasks/release.rb b/tasks/release.rb
index 8073965a50..db82c6a563 100644
--- a/tasks/release.rb
+++ b/tasks/release.rb
@@ -73,9 +73,22 @@ namespace :release do
end
end
+ task :commit do
+ File.open('dist/commit_message.txt', 'w') do |f|
+ f.puts "# Preparing for #{version} release\n"
+ f.puts
+ f.puts "# UNCOMMENT THE LINE ABOVE TO APPROVE THIS COMMIT"
+ end
+
+ sh "git add . && git commit --verbose --template=dist/commit_message.txt"
+ rm_f "dist/commit_message.txt"
+ end
+
task :tag do
sh "git tag #{tag}"
end
+
+ task :full => %w(ensure_clean_state all:build commit)
end
namespace :all do