Skip to content

Commit

Permalink
Generate an appropriate URL depending on whether Crypt::SSLeay is ins…
Browse files Browse the repository at this point in the history
…talled or not
  • Loading branch information
bingos committed Aug 24, 2010
1 parent 33ce7ed commit e3fbe4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Task-CPANPLUS-Metabase/bin/metabase_cpanp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ use File::Spec;
use Term::UI;
use Term::ReadLine;
use CPANPLUS::Configure;
use Module::Load::Conditional qw[check_install];

my $url = 'https://metabase.cpantesters.org/api/v1/';
my $url = 'metabase.cpantesters.org/api/v1/';

if ( check_install( module => 'Crypt::SSLeay' ) ) {
$url = 'https://' . $url;
}
else {
$url = 'http://' . $url;
}

my (%profile, $help, $output, $full_name, $email_address, $password);

Expand Down
3 changes: 2 additions & 1 deletion Task-CPANPLUS-Metabase/dist.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = Task-CPANPLUS-Metabase
version = 0.06
version = 0.08
author = Chris Williams <chris@bingosnet.co.uk>
license = Perl_5
copyright_holder = Chris Williams
Expand All @@ -9,6 +9,7 @@ copyright_holder = Chris Williams
[Prereq]
CPANPLUS = 0.9007
Metabase::Fact = 0.017
Module::Load::Conditional = 0
Term::UI = 0
Test::Reporter = 1.57
Test::Reporter::Transport::Metabase = 1.999008

0 comments on commit e3fbe4b

Please sign in to comment.