public class AnsibleWorker extends Object
| Constructor and Description |
|---|
AnsibleWorker(File root) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(Role r) |
void |
apply(AlgorithmSet as,
PrintStream ps,
boolean updateSVN) |
List<String> |
checkMatch(String[] lines,
List<String> ls) |
void |
destroy()
Destroy the worker:
- remove the working dir
|
void |
ensureWorkStructure() |
File |
getInventoryFile() |
File |
getPlaybookFile() |
File |
getRolesDir() |
File |
getWorkdir() |
String |
getWorkerId() |
static String |
md5(byte[] contents) |
void |
removeWorkStructure() |
void |
setInventory(Inventory inventory) |
void |
setPlaybook(Playbook playbook) |
List<String> |
updateSVN(String file,
List<String> ldep) |
public AnsibleWorker(File root)
public File getWorkdir()
public File getRolesDir()
public String getWorkerId()
public void ensureWorkStructure()
public void removeWorkStructure()
public File getPlaybookFile()
public File getInventoryFile()
public void setInventory(Inventory inventory) throws IOException
IOExceptionpublic void setPlaybook(Playbook playbook) throws IOException
IOExceptionpublic void addRole(Role r) throws IOException
IOExceptionpublic void apply(AlgorithmSet as, PrintStream ps, boolean updateSVN) throws IOException, InterruptedException, org.tmatesoft.svn.core.SVNException
IOExceptionInterruptedExceptionorg.tmatesoft.svn.core.SVNExceptionpublic List<String> updateSVN(String file, List<String> ldep) throws org.tmatesoft.svn.core.SVNException, IOException
org.tmatesoft.svn.core.SVNExceptionIOExceptionpublic static String md5(byte[] contents)
public void destroy()
Copyright © 2017. All Rights Reserved.