Sha256: 8e36cedfaebd53d7c89691bda600212c6a53e21036257e0e4b99c1a1a98318eb

Contents?: true

Size: 646 Bytes

Versions: 5

Compression:

Stored size: 646 Bytes

Contents

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/foreman' 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/lib/tasks/patches.rake
foreman_discovery-1.0.0.rc4 test/foreman_app/lib/tasks/patches.rake
foreman_discovery-1.0.0.rc3 test/foreman_app/lib/tasks/patches.rake
foreman_discovery-1.0.0.rc2 test/foreman_app/lib/tasks/patches.rake
foreman_discovery-1.0.0.rc1 test/foreman_app/lib/tasks/patches.rake