Uses of Interface
org.jclouds.scriptbuilder.domain.Statement

Packages that use Statement
org.jclouds.scriptbuilder   
org.jclouds.scriptbuilder.domain   
org.jclouds.scriptbuilder.functions   
org.jclouds.scriptbuilder.statements.chef   
org.jclouds.scriptbuilder.statements.git   
org.jclouds.scriptbuilder.statements.java   
org.jclouds.scriptbuilder.statements.login   
org.jclouds.scriptbuilder.statements.ruby   
org.jclouds.scriptbuilder.statements.ssh   
 

Uses of Statement in org.jclouds.scriptbuilder
 

Classes in org.jclouds.scriptbuilder that implement Statement
 class ExitInsteadOfReturn
          you cannot return from a top-level script, so if you are using snippets that issue return then you'll want to wrap them in this.
 class InitScript
          Creates an init script file
 class ScriptBuilder
          Creates a shell script.
 

Methods in org.jclouds.scriptbuilder that return Statement
static Statement ScriptBuilder.call(String fn, String... args)
           
protected  Statement ExitInsteadOfReturn.delegate()
           
static Statement ScriptBuilder.findPid(String pid)
           
static Statement ScriptBuilder.forget(String instanceName, String script, String logDir)
           
 

Methods in org.jclouds.scriptbuilder with parameters of type Statement
 ScriptBuilder ScriptBuilder.addStatement(Statement statement)
           
 InitScript.Builder InitScript.Builder.init(Statement... init)
           
 InitScript.Builder InitScript.Builder.init(Statement init)
           
 InitScript.Builder InitScript.Builder.run(Statement... run)
           
 InitScript.Builder InitScript.Builder.run(Statement run)
           
 

Method parameters in org.jclouds.scriptbuilder with type arguments of type Statement
 InitScript.Builder InitScript.Builder.init(Iterable<Statement> init)
           
static Map<String,String> ScriptBuilder.resolveFunctionDependenciesForStatements(Map<String,String> knownFunctions, Iterable<Statement> statements, OsFamily osFamily)
           
 InitScript.Builder InitScript.Builder.run(Iterable<Statement> run)
           
 

Constructors in org.jclouds.scriptbuilder with parameters of type Statement
ExitInsteadOfReturn(Statement delegate)
           
 

Uses of Statement in org.jclouds.scriptbuilder.domain
 

Classes in org.jclouds.scriptbuilder.domain that implement Statement
 class AppendFile
          Creates a run script
 class Call
          Statement used in a shell script
 class CreateOrOverwriteFile
          Creates a run script
 class CreateRunScript
          Creates a run script
static class CreateRunScript.AddExport
           
 class InterpretableStatement
          Statement used in a shell script
 class Kill
          Statement used in a shell script
 class LiteralStatement
          Statement used in a shell script without modifications apart from a trailing newline.
 class PipeHttpResponseTo
          Pipes the content of the http response to a shell command that accepts input from stdin
 class PipeHttpResponseToBash
          Pipes the content of the http response to bash
 class PipeHttpResponseToTarxpzfIntoDirectory
          Pipes the content of the http response to tar -xpzf
 class SaveHttpResponseTo
          saves the content of the http response to a file
 class StatementList
          Statements used in a shell script
 class SwitchArg
          Statement used in a shell script
 class UnzipHttpResponseIntoDirectory
          unzips the content into a directory
 

Fields in org.jclouds.scriptbuilder.domain with type parameters of type Statement
 List<Statement> StatementList.statements
           
 

Methods in org.jclouds.scriptbuilder.domain that return Statement
static Statement Statements.appendFile(String path, Iterable<String> lines)
           
static Statement Statements.appendFile(String path, Iterable<String> lines, String delimiter)
           
static Statement Statements.appendFile(String path, String line, String delimiter)
           
static Statement Statements.call(String function, String... args)
           
static Statement Statements.createOrOverwriteFile(String path, Iterable<String> lines)
           
static Statement Statements.createOrOverwriteFile(String path, Iterable<String> lines, String delimiter)
           
static Statement Statements.exec(String portableStatement)
          interprets and adds a newline to the statement
static Statement Statements.extractTargzAndFlattenIntoDirectory(URI tgz, String dest)
          like Statements.extractTargzIntoDirectory(URI, String) except that it flattens the first directory in the archive For example, apache-maven-3.0.4-bin.tar.gz normally extracts directories like ./apache-maven-3.0.4/bin.
static Statement Statements.extractTargzIntoDirectory(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers, String directory)
          untar, ungzip the data received from the request parameters.
static Statement Statements.extractTargzIntoDirectory(URI targz, String directory)
           
static Statement Statements.extractZipIntoDirectory(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers, String directory)
          unzip the data received from the request parameters.
static Statement Statements.findPid(String args)
          Stores the pid into the variable FOUND_PID if successful.
static Statement Statements.forget(String instanceName, String script, String logDir)
          Runs the script in a way that it can be matched later with Statements.findPid(java.lang.String)
static Statement Statements.interpret(String... portableStatements)
          statement can have multiple newlines, note you should use lf to be portable
static Statement Statements.kill()
          Kills the pid and subprocesses related to the variable FOUND_PID if set.
static Statement Statements.literal(String literalStatement)
          sends statement only appending a newline
static Statement Statements.newStatementList(Statement... statements)
           
static Statement Statements.pipeHttpResponseToBash(String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers)
          exec the data received from the request parameters.
static Statement Statements.rm(String path)
           
static Statement Statements.saveHttpResponseTo(URI source, String dir, String file)
           
static Statement Statements.switchArg(int arg, Map<String,Statement> valueToActions)
           
 

Methods in org.jclouds.scriptbuilder.domain that return types with arguments of type Statement
 List<Statement> StatementList.delegate()
           
 

Methods in org.jclouds.scriptbuilder.domain with parameters of type Statement
static Statement Statements.newStatementList(Statement... statements)
           
 void StatementVisitor.visit(Statement in)
           
 void AdminAccessVisitor.visit(Statement input)
           
 

Method parameters in org.jclouds.scriptbuilder.domain with type arguments of type Statement
static CreateRunScript Statements.createRunScript(String instanceName, Iterable<String> exports, String pwd, Iterable<Statement> statements)
           
static Statement Statements.switchArg(int arg, Map<String,Statement> valueToActions)
           
 

Constructors in org.jclouds.scriptbuilder.domain with parameters of type Statement
PipeHttpResponseTo(Statement toExec, String method, URI endpoint, com.google.common.collect.Multimap<String,String> headers)
           
StatementList(Statement... statements)
           
 

Constructor parameters in org.jclouds.scriptbuilder.domain with type arguments of type Statement
CreateRunScript(String instanceName, Iterable<String> exports, String pwd, Iterable<Statement> statements)
           
StatementList(Iterable<Statement> statements)
           
SwitchArg(int arg, Map<String,Statement> valueToActions)
          Generates a switch statement based on arg.
 

Uses of Statement in org.jclouds.scriptbuilder.functions
 

Methods in org.jclouds.scriptbuilder.functions with parameters of type Statement
 org.jclouds.domain.Credentials CredentialsFromAdminAccess.apply(Statement input)
           
 

Uses of Statement in org.jclouds.scriptbuilder.statements.chef
 

Classes in org.jclouds.scriptbuilder.statements.chef that implement Statement
 class ChefSolo
          Bootstraps a node using Chef Solo.
 class InstallChefGems
          Installs Chef gems onto a host.
 class InstallChefUsingOmnibus
          Installs the Chef client using the Omnibus installer.
 

Uses of Statement in org.jclouds.scriptbuilder.statements.git
 

Classes in org.jclouds.scriptbuilder.statements.git that implement Statement
 class CloneGitRepo
          Clones a gitRepoAndRef into a newly created directory, creates remote-tracking branches for each branch in the cloned gitRepoAndRef (visible using git branch -r), and creates and checks out an initial branch that is forked from the cloned gitRepoAndRef's currently active branch.
 class InstallGit
          Installs git onto a host
 

Uses of Statement in org.jclouds.scriptbuilder.statements.java
 

Classes in org.jclouds.scriptbuilder.statements.java that implement Statement
static class InstallJDK.FromOpenJDK
           
static class InstallJDK.FromURL
           
 

Methods in org.jclouds.scriptbuilder.statements.java that return Statement
static Statement InstallJDK.fromOpenJDK()
           
static Statement InstallJDK.fromURL(URI url)
           
 

Uses of Statement in org.jclouds.scriptbuilder.statements.login
 

Classes in org.jclouds.scriptbuilder.statements.login that implement Statement
 class AdminAccess
          Controls the administrative access to a node.
 class ReplaceShadowPasswordEntry
          Replaces the password entry for a user in the shadow file, using SHA-512 crypt syntax.
 class ReplaceShadowPasswordEntryOfLoginUser
           
 class Sudoers
          Control /etc/sudoers
 class UserAdd
          Creates a statement that will add a given user to a machine ("login"), with optional password, groups, private key, and authorized keys.
 

Methods in org.jclouds.scriptbuilder.statements.login that return Statement
static Statement SudoStatements.createWheel()
          create new sudoers file with the wheel group authorized to all commands without a password
 

Uses of Statement in org.jclouds.scriptbuilder.statements.ruby
 

Classes in org.jclouds.scriptbuilder.statements.ruby that implement Statement
 class InstallRuby
          Installs Ruby onto a host.
 class InstallRubyGems
          Installs RubyGems onto a host.
 

Uses of Statement in org.jclouds.scriptbuilder.statements.ssh
 

Classes in org.jclouds.scriptbuilder.statements.ssh that implement Statement
 class AuthorizeRSAPublicKeys
           
 class InstallRSAPrivateKey
           
 class SshdConfig
          Control sshd_config
 

Methods in org.jclouds.scriptbuilder.statements.ssh that return Statement
static Statement SshStatements.lockSshd()
          lock sshd down so root cannot login, and password auth is disabled,
static Statement SshStatements.sshdConfig(Map<String,String> params)
           
 



Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.