> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +@Singleton
> +public class TemplateOptionsToStatementWithoutPublicKey extends
> TemplateOptionsToStatement {
> +
> + @Override
> + public Statement apply(TemplateOptions options) {
> + List<Statement> bootstrap = newArrayList();
> + if (options.getRunScript() != null) {
> + bootstrap.add(options.getRunScript());
> + }
> + if (options.getPrivateKey() != null) {
> + bootstrap.add(new InstallRSAPrivateKey(options.getPrivateKey()));
> + }
> + if (bootstrap.size() >= 1) {
`!bootstrap.isEmpty()`
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9153066