Package org.jclouds.compute.functions
Class NodeAndTemplateOptionsToStatementWithoutPublicKey
- java.lang.Object
-
- org.jclouds.compute.functions.NodeAndTemplateOptionsToStatementWithoutPublicKey
-
- All Implemented Interfaces:
NodeAndTemplateOptionsToStatement
@Singleton public class NodeAndTemplateOptionsToStatementWithoutPublicKey extends Object implements NodeAndTemplateOptionsToStatement
Convert the node and template options into a statement, but ignoring the public key.Providers that can install the public key using their API should bind this strategy to avoid an unnecessary SSH connection to manually upload it.
-
-
Constructor Summary
Constructors Constructor Description NodeAndTemplateOptionsToStatementWithoutPublicKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statementapply(NodeMetadata node, TemplateOptions options)Returns the script that has to be executed in the given node.
-
-
-
Method Detail
-
apply
public Statement apply(NodeMetadata node, TemplateOptions options)
Description copied from interface:NodeAndTemplateOptionsToStatementReturns the script that has to be executed in the given node.- Specified by:
applyin interfaceNodeAndTemplateOptionsToStatement- Returns:
- The script to be executed or
nullif no script needs to be run.
-
-