0.2.4 • Published 9 years ago

git-status-monitor v0.2.4

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Git Status Monitor

Monitors a git repo for changes via git status & notifies you when changes show up via email. Useful for monitoring files for unexpected changes in production.

NOTE: This application should be called from a scheduling application such as cron. By itself it will only run once.

Installation

npm install -g git-status-monitor

Usage

git-status-monitor $folder_to_watch $files_to_watch $notify_email_to $notify_email_from $project_name
  • folder_to_watch: The directory the git repo you wish to monitor is in.
  • files_to_watch: A comma-delimited list of files you wish to be alerted to that have changed. The files are relative to the project root. To watch the entire repo, set this to $. To watch entire subdirectories, use the folder name with an asterisk (Example: www/*).
  • notify_email_to: A comma-delimited list of email addresses that are to receive the alert that the file has changed.
  • notify_email_from: The email address the alert should come from.
  • project_name: The name of the project. This is used in the alert message.

Example Usage (Basic)

git-status-monitor /var/www/wp_site .htaccess,wp-config.php dev@example.org,sys@example.org alerts@example.org "My WP Site"

Example Usage (Entire Repo)

git-status-monitor /var/www/wp_site $ dev@example.org,sys@example.org alerts@example.org "My WP Site"

Example Usage (One File & Sub Directory)

git-status-monitor /var/www/wp_site .htaccess,wp-content/* dev@example.org,sys@example.org alerts@example.org "My WP Site"

Change Log

0.2.4 - 2015-07-05

Fixed

  • Fixed an issue where on some systems the application could not locate the email templates folder.

0.2.3 - 2015-06-30

Added

  • CHANGELOG.md

Changed

  • README.md (Added CHANGELOG & License)
  • Version number skipped a few to sync up repo version & NPM (my mistake).

0.2.0 - 2015-06-30

Added

  • Now has the ability to watch the entire repo.
  • Now has the ability to watch sub directories.
  • Now notifies you if the repo is missing or deleted.

Fixed

  • The "git status" command needed an update to be correct.
  • Fixed an issue where the email sent did not include the files that triggered the alert at the top.
  • Now checks to see if nothing has changed.

0.1.0 - 2015-06-29

Added

  • Initial Project Upload

License

Git Status Monitor is released under the MIT License.