X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy.pm;fp=lib%2FZOOM%2FIRSpy.pm;h=81fa91171341b81401ddc99077b96a75eee31987;hp=3e93b476d48d7129225275314b32909f3d9281a3;hb=ad1da2e933db65854b8bc177aaf053a31c4004b3;hpb=9405fb0ea58e0fdfa281b99656ab8da7534bab8c diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index 3e93b47..81fa911 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -116,6 +116,16 @@ sub new { return $this; } +# wrapper to read the IRSpy database name from environment variable / apache config +sub connect_to_registry { + my %args = @_; + + # XXX: we could also handle her: user, password, elementSetName + + my $database = $ENV{IRSpyDbName} || "localhost:8018/IR-Explain---1"; + + return $database; +} sub log { my $this = shift();