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 class
AppendFile.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
AppendFile(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 String
appendLineToWindowsFile(String line, String path)
protected String
appendToWindowsFile()
static AppendFile.Builder
builder()
static String
escapeVarTokens(String toEscape, OsFamily family)
Iterable<String>
functionDependencies(OsFamily family)
protected String
hereFile()
String
render(OsFamily family)
StringBuilder
startHereFile()
-
-
-
Method Detail
-
builder
public static AppendFile.Builder builder()
-
functionDependencies
public Iterable<String> functionDependencies(OsFamily family)
- Specified by:
functionDependencies
in interfaceStatement
-
appendToWindowsFile
protected String appendToWindowsFile()
-
hereFile
protected String hereFile()
-
startHereFile
public StringBuilder startHereFile()
-
-