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

Nested Class Summary
static class CreateOrOverwriteFile.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.scriptbuilder.domain.AppendFile
delimeter, DELIMETER, expandVariables, lines, path
 
Constructor Summary
protected CreateOrOverwriteFile(String path, Iterable<String> lines, String delimeter, boolean expandVariables)
           
 
Method Summary
protected  String appendToWindowsFile()
           
static CreateOrOverwriteFile.Builder builder()
           
 StringBuilder startHereFile()
           
 
Methods inherited from class org.jclouds.scriptbuilder.domain.AppendFile
appendLineToWindowsFile, escapeVarTokens, functionDependencies, hereFile, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateOrOverwriteFile

protected CreateOrOverwriteFile(String path,
                                Iterable<String> lines,
                                String delimeter,
                                boolean expandVariables)
Method Detail

builder

public static CreateOrOverwriteFile.Builder builder()

appendToWindowsFile

protected String appendToWindowsFile()
Overrides:
appendToWindowsFile in class AppendFile

startHereFile

public StringBuilder startHereFile()
Overrides:
startHereFile in class AppendFile


Copyright © 2009-2012 jclouds. All Rights Reserved.