org.jclouds.scriptbuilder.domain
Class AppendFile

java.lang.Object
  extended by org.jclouds.scriptbuilder.domain.AppendFile
All Implemented Interfaces:
Statement
Direct Known Subclasses:
CreateOrOverwriteFile

public class AppendFile
extends Object
implements Statement

Creates a run script

Author:
Adrian Cole

Field Summary
static String MARKER
           
 
Constructor Summary
AppendFile(String path, Iterable<String> lines)
           
AppendFile(String path, Iterable<String> lines, String marker)
           
 
Method Summary
protected  Statement appendToFile(String line, String path, OsFamily family)
           
static String escapeVarTokens(String toEscape, OsFamily family)
           
 Iterable<String> functionDependencies(OsFamily family)
           
protected  void hereFile(String path, StringBuilder builder)
           
 String render(OsFamily family)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARKER

public static final String MARKER
See Also:
Constant Field Values
Constructor Detail

AppendFile

public AppendFile(String path,
                  Iterable<String> lines)

AppendFile

public AppendFile(String path,
                  Iterable<String> lines,
                  String marker)
Method Detail

escapeVarTokens

public static String escapeVarTokens(String toEscape,
                                     OsFamily family)

functionDependencies

public Iterable<String> functionDependencies(OsFamily family)
Specified by:
functionDependencies in interface Statement

render

public String render(OsFamily family)
Specified by:
render in interface Statement

hereFile

protected void hereFile(String path,
                        StringBuilder builder)

appendToFile

protected Statement appendToFile(String line,
                                 String path,
                                 OsFamily family)


Copyright © 2009-2011 jclouds. All Rights Reserved.