@Singleton public class NodeAndTemplateOptionsToStatementWithoutPublicKey extends Object implements NodeAndTemplateOptionsToStatement
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 and Description |
---|
NodeAndTemplateOptionsToStatementWithoutPublicKey() |
Modifier and Type | Method and Description |
---|---|
Statement |
apply(NodeMetadata node,
TemplateOptions options)
Returns the script that has to be executed in the given node.
|
public NodeAndTemplateOptionsToStatementWithoutPublicKey()
public Statement apply(NodeMetadata node, TemplateOptions options)
NodeAndTemplateOptionsToStatement
apply
in interface NodeAndTemplateOptionsToStatement
null
if no script needs
to be run.Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.