org.jclouds.scriptbuilder.domain
Class CreateOrOverwriteFile

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

public class CreateOrOverwriteFile
extends AppendFile

Creates a run script

Author:
Adrian Cole

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

Constructor Detail

CreateOrOverwriteFile

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

CreateOrOverwriteFile

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

render

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

hereFile

protected void hereFile(String path,
                        StringBuilder builder)
Overrides:
hereFile in class AppendFile


Copyright © 2009-2011 jclouds. All Rights Reserved.