App-GitHooks
view release on metacpan or search on metacpan
# directory.
sub ACTION_test
{
my ( $self ) = @_;
$self->recursive_test_files(1);
$self->test_files( 't', 'xt' )
if $ENV{'RELEASE_TESTING'};
return $self->SUPER::ACTION_test();
}
# Force running extended tests when testing the distribution.
sub ACTION_disttest
{
my ( $self ) = @_;
local $ENV{ RELEASE_TESTING } = 1;
return $self->SUPER::ACTION_disttest();
}
|,
);
my $builder = $class->new(
module_name => 'App::GitHooks',
license => 'Perl_5',
dist_author => q{Guillaume Aubert <aubertg@cpan.org>},
dist_version_from => 'lib/App/GitHooks.pm',
build_requires =>
lib/App/GitHooks/Hook/PrePush.pm view on Meta::CPAN
sub run
{
my ( $class, %args ) = @_;
# Retrieve stdin, which contains a list of the references being pushed.
# It is important to do it once for the whole hook, and then pass it to the
# plugins - otherwise the first plugin that reads stdin will leave it empty
# for the others and they won't see any changes.
$args{'stdin'} = [ <STDIN> ]; ## no critic (InputOutput::ProhibitExplicitStdin)
return $class->SUPER::run(
%args
);
}
=head1 BUGS
Please report any bugs or feature requests through the web interface at
L<https://github.com/guillaumeaubert/App-GitHooks/issues/new>.
I will be notified, and then you'll automatically be notified of progress on
( run in 1.379 second using v1.01-cache-2.11-cpan-49f99fa48dc )