Branch Coverage

blib/lib/Metabrik/Server/Logstash.pm
Criterion Covered Total %
branch 0 64 0.0


line true false branch
76 0 0 unless (defined $binary)
82 0 0 unless $self->brik_help_run_file_not_found("get_binary", $binary)
157 0 0 unless my $ft = "Metabrik::File::Text"->new_from_brik_init($self)
161 0 0 unless $ft->write($conf, $conf_file)
173 0 0 if ($version eq '2.4.0') { }
0 0 elsif ($version eq '5.0.0') { }
180 0 0 unless my $cw = "Metabrik::Client::Www"->new_from_brik_init($self)
181 0 0 unless $cw->mirror($url, "$datadir/logstash.tar.gz")
185 0 0 if (defined $self->shell) { }
186 0 0 unless $self->shell->run_cd($datadir)
189 0 0 unless chdir $datadir
193 0 0 unless my $r = $self->execute($cmd)
195 0 0 if (defined $self->shell) { }
196 0 0 unless $self->shell->run_cd($cwd)
199 0 0 unless chdir $cwd
209 0 0 unless $self->brik_help_run_undef_arg("start", $conf_file)
210 0 0 unless $self->brik_help_run_file_not_found("start", $conf_file)
216 0 0 unless my $binary = $self->get_binary
232 0 0 if ($self->status)
237 0 0 unless $self->brik_help_run_undef_arg("start", $conf_file)
238 0 0 unless $self->brik_help_run_file_not_found("start", $conf_file)
241 0 0 unless ($conf_file =~ m[^/])
249 0 0 unless my $binary = $self->get_binary
257 0 0 if ($self->log->level > 2)
275 0 0 unless $self->brik_help_run_undef_arg("start_in_foreground", $conf_file)
276 0 0 unless $self->brik_help_run_file_not_found("start_in_foreground", $conf_file)
278 0 0 if ($self->status)
284 0 0 unless my $binary = $self->get_binary
287 0 0 if ($self->log->level > 2)
297 0 0 unless ($self->status)
304 0 0 unless my $pid = $self->get_pid_from_string($string)
315 0 0 if ($self->is_running_from_string($string))