public class VagrantWrapper extends Object
| Constructor and Description |
|---|
VagrantWrapper(String vagrantFile,
String vagrantVm) |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
executeCommand(String command,
List<String> args) |
protected Boolean |
executeCommand(String command,
List<String> args,
Map<String,String> additionalEnvVars) |
hudson.FilePath |
getContainingFolder() |
String |
getVagrantFile() |
String |
getVagrantFileName() |
String |
getVagrantVm() |
void |
log(String data) |
void |
log(Throwable exception) |
protected boolean |
parseVagrantEnvironment() |
void |
setBuild(hudson.model.AbstractBuild build) |
void |
setLauncher(hudson.Launcher launcher) |
void |
setListener(hudson.model.BuildListener listener) |
protected final String vagrantVm
public String getVagrantFileName()
public void setBuild(hudson.model.AbstractBuild build)
build - public void setLauncher(hudson.Launcher launcher)
launcher - public void setListener(hudson.model.BuildListener listener)
listener - public hudson.FilePath getContainingFolder()
public String getVagrantFile()
public String getVagrantVm()
protected boolean parseVagrantEnvironment()
public void log(String data)
data - public void log(Throwable exception)
protected Boolean executeCommand(String command, List<String> args, Map<String,String> additionalEnvVars) throws IOException, InterruptedException
command - args - additionalEnvVars - IOExceptionInterruptedExceptionprotected Boolean executeCommand(String command, List<String> args) throws IOException, InterruptedException
command - args - IOExceptionInterruptedExceptionCopyright © 2016. All rights reserved.