X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FFatNode.pm;h=76e40c29ce05ddea4416eb2d68dee0ad1b3d1ec8;hp=77e692837bc34a89e8f62e2cdeeaf1c152a85084;hb=302ecfbf4056a977f44f185cbfa925e3886d0c1a;hpb=eb49c7df7a88ac9114188e9eeb1480205bea97ee diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index 77e6928..76e40c2 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -6,7 +6,7 @@ use B qw(perlstring); my @exclude_mods = qw(XSLoader.pm DynaLoader.pm); #used by t/watchdog_fatnode -our $INHIBIT_RUN_NODE = 0; +our $INHIBIT_RUN_NODE = 0; sub stripspace { my ($text) = @_; @@ -61,7 +61,9 @@ my @file_names = keys %mods; my @before_inc = grep { filter_not_core() } @file_names; my @after_inc; -#TODO obviously this should be made into a method or configurable some how +#TODO this is the wrong path to go down - fork() will bring +#the env vars with it and the ssh connector can handle +#forwarding the env vars my $env_pass = ''; if (defined($ENV{OBJECT_REMOTE_LOG_LEVEL})) { my $level = $ENV{OBJECT_REMOTE_LOG_LEVEL}; @@ -75,6 +77,15 @@ if (defined($ENV{OBJECT_REMOTE_LOG_SELECTIONS})) { my $selections = $ENV{OBJECT_REMOTE_LOG_SELECTIONS}; $env_pass .= '$ENV{OBJECT_REMOTE_LOG_SELECTIONS} = "' . $selections . "\";\n"; } +if (defined($ENV{OBJECT_REMOTE_LOG_FORWARDING})) { + my $forwarding = $ENV{OBJECT_REMOTE_LOG_FORWARDING}; + $env_pass .= '$ENV{OBJECT_REMOTE_LOG_FORWARDING} = "' . $forwarding . "\";\n"; +} +if (defined($ENV{OBJECT_REMOTE_PERL_BIN})) { + my $perl_bin = $ENV{OBJECT_REMOTE_PERL_BIN}; + $env_pass .= '$ENV{OBJECT_REMOTE_PERL_BIN} = "' . $perl_bin . "\";\n"; +} + my $start = stripspace <<'END_START';