Rex-WebUI
view release on metacpan or search on metacpan
lib/Rex/WebUI/Model/RexInterface.pm view on Meta::CPAN
warn "Error loading Rexfile: $rexfile - $@";
return $self->{rexfile} = undef;
}
}
sub _hacky_do_rexfile
{
my $filename = shift;
my $rexfile = eval { local(@ARGV, $/) = ($filename); <>; };
eval "package Rex::CLI; use Rex -base; $rexfile";
if($@) {
die("Error loading Rexfile: $@");
}
return $rexfile;
}
# I'm getting a weird conflict with Rex::Commands::run_task so I'm renaming this to something more obscure
( run in 1.086 second using v1.01-cache-2.11-cpan-49f99fa48dc )