org.jclouds.scriptbuilder.domain
Class CreateRunScript

java.lang.Object
  extended by org.jclouds.scriptbuilder.domain.StatementList
      extended by org.jclouds.scriptbuilder.domain.CreateRunScript
All Implemented Interfaces:
AcceptsStatementVisitor, Statement

public class CreateRunScript
extends StatementList

Creates a run script

Author:
Adrian Cole

Nested Class Summary
static class CreateRunScript.AddExportToFile
           
static class CreateRunScript.AddTitleToFile
           
 
Field Summary
static String MARKER
           
static Map<OsFamily,String> OS_TO_CHMOD_PATTERN
           
static Pattern REDIRECT_FD_PATTERN
           
 
Fields inherited from class org.jclouds.scriptbuilder.domain.StatementList
statements
 
Constructor Summary
CreateRunScript(String instanceName, Iterable<String> exports, String pwd, Iterable<Statement> statements)
           
 
Method Summary
static String escapeVarTokens(String toEscape, OsFamily family)
           
 Iterable<String> functionDependencies(OsFamily family)
           
 String render(OsFamily family)
           
 
Methods inherited from class org.jclouds.scriptbuilder.domain.StatementList
accept, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARKER

public static final String MARKER
See Also:
Constant Field Values

OS_TO_CHMOD_PATTERN

public static final Map<OsFamily,String> OS_TO_CHMOD_PATTERN

REDIRECT_FD_PATTERN

public static final Pattern REDIRECT_FD_PATTERN
Constructor Detail

CreateRunScript

public CreateRunScript(String instanceName,
                       Iterable<String> exports,
                       String pwd,
                       Iterable<Statement> statements)
Method Detail

escapeVarTokens

public static String escapeVarTokens(String toEscape,
                                     OsFamily family)

functionDependencies

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

render

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


Copyright © 2009-2011 jclouds. All Rights Reserved.