-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
18 lines (13 loc) · 798 Bytes
/
Copy pathREADME
File metadata and controls
18 lines (13 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
GIT MAIL NOTIFIER
This Ruby script is meant to be called from a Git hook such as post-receive.
It will identify all the files matching a pattern which have been modified in any given pushed commit, it will compress them into a zip archive and it will send them by email to the specified recipients.
USAGE
=====
Call the script from the post-receive file in the "hooks" directory of the remote Git repository.
#!/bin/sh
/path/to/git_mail_notifier.rb /path/to/git_mail_notifier_config.yml
The script has a single required parameter, which is a YAML configuration file. See git_mail_notifier_config.yml.sample for an example.
REQUIREMENTS
============
The script is written in Ruby: a Ruby interpreter is required for it to work.
The action_mailer gem is required for the script to work.