org.jclouds.scriptbuilder
Class EnvBuilder

java.lang.Object
  extended by org.jclouds.scriptbuilder.EnvBuilder

public class EnvBuilder
extends Object

Creates an environment file

Author:
Adrian Cole

Constructor Summary
EnvBuilder()
           
 
Method Summary
 String build(OsFamily osFamily)
          builds the environment file, by adding the following example usage variable exports return statement
 EnvBuilder export(String name, String value)
          Exports a variable inside the script
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvBuilder

public EnvBuilder()
Method Detail

export

public EnvBuilder export(String name,
                         String value)
Exports a variable inside the script


build

public String build(OsFamily osFamily)
builds the environment file, by adding the following
  1. example usage
  2. variable exports
  3. return statement

Parameters:
osFamily - whether to write a cmd or bash script.


Copyright © 2009-2011 jclouds. All Rights Reserved.