|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.scriptbuilder.ScriptBuilder
public class ScriptBuilder
Creates a shell script.
| Constructor Summary | |
|---|---|
ScriptBuilder()
|
|
| Method Summary | |
|---|---|
ScriptBuilder |
addEnvironmentVariableScope(String scopeName,
Map<String,String> variables)
Exports a variable inside the script |
ScriptBuilder |
addStatement(Statement statement)
|
Iterable<String> |
functionDependencies(OsFamily family)
|
String |
render(OsFamily osFamily)
builds the shell script, by adding the following shell declaration line variable exports case/switch |
ScriptBuilder |
unsetEnvironmentVariable(String name)
Unsets a variable to ensure it is set within the script. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptBuilder()
| Method Detail |
|---|
public ScriptBuilder addStatement(Statement statement)
public ScriptBuilder unsetEnvironmentVariable(String name)
public ScriptBuilder addEnvironmentVariableScope(String scopeName,
Map<String,String> variables)
public String render(OsFamily osFamily)
render in interface StatementosFamily - whether to write a cmd or bash script.public Iterable<String> functionDependencies(OsFamily family)
functionDependencies in interface Statement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||