view release on metacpan or search on metacpan
lib/Rex/TaskList/Gearman.pm view on Meta::CPAN
my $task = $self->get_task($task_name);
my @all_server = @{ $task->server };
my $client = Gearman::Client->new;
my $conf = eval eval { local(@ARGV, $/) = ("client.conf"); <>; };
if($@) {
print "Error parsing configuration file.\n";
print $@ . "\n";
CORE::exit 1;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Rex/JobControl/Helper/Project/Job.pm view on Meta::CPAN
$self->project->app->log->error(
"This job doesn't have an output.log file.");
return "No output.log found.";
}
my @loglines = eval { local ( @ARGV, $/ ) = ($logfile); <>; };
return \@loglines;
}
sub create {
lib/Rex/JobControl/Helper/Project/Job.pm view on Meta::CPAN
STEP: for my $s ( @{ $self->steps } ) {
if ( -f $self->project->project_path . "/next_server.txt" ) {
$srv = eval {
local ( @ARGV, $/ ) =
( $self->project->project_path . "/next_server.txt" );
<>;
};
chomp $srv;
unlink $self->project->project_path . "/next_server.txt";
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Rex/Repositorio/Server/Docker/Image.pm view on Meta::CPAN
else {
$self->_auth_upstream();
my $upstream_file = File::Spec->catfile( $image_dir, "endpoint.data" );
$self->app->log->debug("Looking for upstream file: $upstream_file");
if ( -f $upstream_file ) {
my ($upstream_host) = eval { local (@ARGV) = ($upstream_file); <>; };
$orig_file_url =~ s"^(http|https)://([^/]+)/"$1://$upstream_host/";
$self->app->log->debug("Rewrite Upstream-URL: $orig_file_url");
}
$self->proxy_to(
lib/Rex/Repositorio/Server/Docker/Image.pm view on Meta::CPAN
else {
$self->_auth_upstream();
my $upstream_file = File::Spec->catfile( $image_dir, "endpoint.data" );
$self->app->log->debug("Looking for upstream file: $upstream_file");
if ( -f $upstream_file ) {
my ($upstream_host) = eval { local (@ARGV) = ($upstream_file); <>; };
$orig_file_url =~ s"^(http|https)://([^/]+)/"$1://$upstream_host/";
$self->app->log->debug("Rewrite Upstream-URL: $orig_file_url");
}
$self->proxy_to(
lib/Rex/Repositorio/Server/Docker/Image.pm view on Meta::CPAN
else {
$self->_auth_upstream();
my $upstream_file = File::Spec->catfile( $image_dir, "endpoint.data" );
$self->app->log->debug("Looking for upstream file: $upstream_file");
if ( -f $upstream_file ) {
my ($upstream_host) = eval { local (@ARGV) = ($upstream_file); <>; };
$orig_file_url =~ s"^(http|https)://([^/]+)/"$1://$upstream_host/";
$self->app->log->debug("Rewrite Upstream-URL: $orig_file_url");
}
$self->proxy_to(
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Rex/WebUI/Model/RexInterface.pm view on Meta::CPAN
}
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: $@");
}
view all matches for this distribution