From: Dobrica Pavlinusic Date: Sun, 25 May 2014 08:49:40 +0000 (+0000) Subject: remove dependency on mongodb X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=ec4a3f84fc62a282412fe10126dc4e3d1e4a1a4c;hp=25eee9ed21ee84902348e85d48812d6a3c6c9c93;p=pxelator remove dependency on mongodb --- diff --git a/Makefile.PL b/Makefile.PL index e77c8fd..8fe6216 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -19,7 +19,7 @@ requires 'Data::Structure::Util'; requires 'XML::Simple'; requires 'File::Slurp'; requires 'YAML'; -requires 'MongoDB'; +#requires 'MongoDB'; features( 'ssh' => [ diff --git a/lib/PXElator/store.pm b/lib/PXElator/store.pm index 6624c64..159484f 100644 --- a/lib/PXElator/store.pm +++ b/lib/PXElator/store.pm @@ -9,14 +9,14 @@ use Data::Dump qw(dump); our $audit; -eval { - require MongoDB; - - my $conn = MongoDB::Connection->new; - my $db = $conn->get_database( 'pxelator' ); - $audit = $db->get_collection( 'audit' ); -}; -warn "ERROR: no store for audit: $@" if $@; +#eval { +# require MongoDB; +# +# my $conn = MongoDB::Connection->new; +# my $db = $conn->get_database( 'pxelator' ); +# $audit = $db->get_collection( 'audit' ); +#}; +#warn "ERROR: no store for audit: $@" if $@; sub audit {