Package org.jclouds.scriptbuilder.domain
Class AppendFile
- java.lang.Object
-
- org.jclouds.scriptbuilder.domain.AppendFile
-
- All Implemented Interfaces:
Statement
- Direct Known Subclasses:
CreateOrOverwriteFile
public class AppendFile extends Object implements Statement
Creates a run script
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAppendFile.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedAppendFile(String path, Iterable<String> lines, String delimiter, boolean expandVariables)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringappendLineToWindowsFile(String line, String path)protected StringappendToWindowsFile()static AppendFile.Builderbuilder()static StringescapeVarTokens(String toEscape, OsFamily family)Iterable<String>functionDependencies(OsFamily family)protected StringhereFile()Stringrender(OsFamily family)StringBuilderstartHereFile()
-
-
-
Method Detail
-
builder
public static AppendFile.Builder builder()
-
functionDependencies
public Iterable<String> functionDependencies(OsFamily family)
- Specified by:
functionDependenciesin interfaceStatement
-
appendToWindowsFile
protected String appendToWindowsFile()
-
hereFile
protected String hereFile()
-
startHereFile
public StringBuilder startHereFile()
-
-