Revision c16bd9e2
Added by Ohad Levy about 13 years ago
- ID c16bd9e206c1cfa42c5c77534c226f27af26897a
Rakefile | ||
---|---|---|
require 'rake/rdoctask'
|
||
require 'rake/packagetask'
|
||
require 'rake/gempackagetask'
|
||
load 'tasks/proxy_tasks.rake'
|
||
|
||
desc 'Default: run unit tests.'
|
||
task :default => :test
|
tasks/proxy_tasks.rake | ||
---|---|---|
# desc "Explaining what the task does"
|
||
# task :proxy do
|
||
# # Task goes here
|
||
# end
|
||
desc "Send patch information to the foreman-dev list"
|
||
task :mail_patches do
|
||
if Dir.glob("00*.patch").length > 0
|
||
raise "Patches already exist matching '00*.patch'; clean up first"
|
||
end
|
||
|
||
# Create all of the patches
|
||
sh "git format-patch -C -M -s -n --subject-prefix='PATCH/smart-proxy' origin/develop"
|
||
|
||
# If we've got more than one patch, add --compose
|
||
compose = Dir.glob("00*.patch").length > 1 ? "--compose" : ""
|
||
|
||
# Now send the mail.
|
||
sh "git send-email #{compose} --no-signed-off-by-cc --suppress-from --to foreman-dev@googlegroups.com 00*.patch"
|
||
|
||
# Finally, clean up the patches
|
||
sh "rm 00*.patch"
|
||
end
|
Also available in: Unified diff
fixes #787 - add rake task to send patches