Plack::Middleware::GitStatus - Provide Git status via HTTP
use Plack::Builder; builder { enable "Plack::Middleware::GitStatus", ( path => '/git-status', git_dir => '/path/to/repository' ) if $PLACK_ENV eq 'staging'; $app; }; % curl http://server:port/git-status CurrentBranch: feature/something-interesting Commit: a7c24106ac453c10f1a460f52e95767803076dde Author: y_uuki Date: Tue Feb 12 06:06:41 2013 Message: Hello World
Plack::Middleware::GitStatus provides Git status such as current branch and last commit via HTTP. On a remote server such as staging environment, it is sometimes troublesome to check a current branch and last commit information of a working web application. Plack::Middleware::GitStatus add URI location displaying the information to your Plack application.
path => '/server-status',
location that displays git status
git_dir => '/path/to/repository'
git direcotry path like '/path/to/deploy_dir/current'
Yuuki Tsubouchi <yuuki {at} cpan.org>
Plack::Middleware::ServerStatus::Lite
Plack::Middleware::GitBlame
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::Middleware::GitStatus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::GitStatus
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::GitStatus
For more information on module installation, please visit the detailed CPAN module installation guide.