X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy.pm;h=81fa91171341b81401ddc99077b96a75eee31987;hp=3e93b476d48d7129225275314b32909f3d9281a3;hb=fbb18a3e2f54a7ac52bcfe7d1ddff2ebbd5bea99;hpb=9b3b58e46da3867cabcc6a6c54442ea2e6431f9a 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();