public class DefaultExtraInfoCollector extends Object implements ExtraInfoCollector
ExtraInfoCollector.ExtraInfoExecutionException, ExtraInfoCollector.ExtraInfoResult
Constructor and Description |
---|
DefaultExtraInfoCollector(DoctorConfig doctorConfig,
ProjectFilesystem projectFilesystem,
ProcessExecutor processExecutor) |
Modifier and Type | Method and Description |
---|---|
Optional<ExtraInfoCollector.ExtraInfoResult> |
run() |
static String |
runCommandAndGetStdout(Iterable<String> command,
ProjectFilesystem projectFilesystem,
ProcessExecutor processExecutor) |
public DefaultExtraInfoCollector(DoctorConfig doctorConfig, ProjectFilesystem projectFilesystem, ProcessExecutor processExecutor)
public Optional<ExtraInfoCollector.ExtraInfoResult> run() throws IOException, InterruptedException, ExtraInfoCollector.ExtraInfoExecutionException
run
in interface ExtraInfoCollector
IOException
InterruptedException
ExtraInfoCollector.ExtraInfoExecutionException
public static String runCommandAndGetStdout(Iterable<String> command, ProjectFilesystem projectFilesystem, ProcessExecutor processExecutor) throws InterruptedException, ExtraInfoCollector.ExtraInfoExecutionException