App-Slaughter
view release on metacpan or search on metacpan
bin/slaughter view on Meta::CPAN
#
# Look beneath each directory on the perl include path.
#
foreach my $dir (@INC)
{
#
# Portable filename construction
#
my $guess = File::Spec->catfile( $dir, "Slaughter", "Transport" );
#
# Found the module directory?
#
if ( -d $guess )
{
foreach my $pm ( sort( glob( $guess . "/*.pm" ) ) )
{
# skip the base-class
next if ( $pm =~ /revisionControl\.pm/ );
# strip the directory name + suffix
my $name = basename($pm);
$name =~ s/\.pm$//gi;
print $name . "\n";
bin/slaughter view on Meta::CPAN
#
# If we have no transport type, but we do have a prefix, we can attempt
# to infer what to use.
#
if ( $CONFIG{ 'prefix' } && !$CONFIG{ 'transport' } )
{
# show what is going on
$CONFIG{ 'verbose' } &&
print "Attempting to guesss transport for $CONFIG{'prefix'}\n";
# git://.... or http://.../foo.git
$CONFIG{ 'transport' } = "git"
if ( $CONFIG{ 'prefix' } =~ /(^git|\.git$)/i );
# http://.../foo.hg
$CONFIG{ 'transport' } = "hg" if ( $CONFIG{ 'prefix' } =~ /\.hg$/i );
# rsync://.../
$CONFIG{ 'transport' } = "rsync"
( run in 0.687 second using v1.01-cache-2.11-cpan-702932259ff )