Subject: | Allow build prompts to be circumvented |
Hi Mark,
Nice job with this module - I'm finding it very useful so far.
For packaging (RPMs etc.) it would be nice if the test prompts in Build.PL could be circumvented. Suggested patch attached.
Thanks much,
Gavin
Subject: | REST-Neo4p-0.2230-build-noninteractive.patch |
From e137d7d2824400c196c160614e280db34b7f0392 Mon Sep 17 00:00:00 2001
From: Gavin Carr <gavin@openfusion.com.au>
Date: Tue, 31 Dec 2013 14:41:12 +1100
Subject: [PATCH] Tweak Build.PL to check env for test server.
---
Build.PL | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Build.PL b/Build.PL
index d28af4c..db61f73 100644
--- a/Build.PL
+++ b/Build.PL
@@ -32,7 +32,7 @@ my $build = Module::Build->new
perl => 5.010
);
-$build->notes( test_server => $build->prompt("Server for live tests:", "http://127.0.0.1:7474"));
-$build->notes( user => $build->prompt("Username:", "") );
-$build->notes( pass => $build->prompt("Pass:", "") );
+$build->notes( test_server => $ENV{REST_NEO4P_TEST_SERVER} // $build->prompt("Server for live tests:", "http://127.0.0.1:7474"));
+$build->notes( user => $ENV{REST_NEO4P_TEST_USER} // $build->prompt("Username:", "") );
+$build->notes( pass => $ENV{REST_NEO4P_TEST_PASS} // $build->prompt("Pass:", "") );
$build->create_build_script;
--
1.7.1