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 -
Method Summary
Modifier and TypeMethodDescriptionapply
(NodeMetadata node, TemplateOptions options) Returns the script that has to be executed in the given node.
-
Constructor Details
-
NodeAndTemplateOptionsToStatementWithoutPublicKey
public NodeAndTemplateOptionsToStatementWithoutPublicKey()
-
-
Method Details
-
apply
Description copied from interface:NodeAndTemplateOptionsToStatement
Returns the script that has to be executed in the given node.- Specified by:
apply
in interfaceNodeAndTemplateOptionsToStatement
- Returns:
- The script to be executed or
null
if no script needs to be run.
-