Package org.jclouds.scriptbuilder

Examples of org.jclouds.scriptbuilder.ExitInsteadOfReturn


         options.put("-E", environment.get().toString());
      }
      String strOptions = Joiner.on(' ').withKeyValueSeparator(" ").join(options.build());
      Statement runChef = exec("chef-client " + strOptions);

      return newStatementList(new ExitInsteadOfReturn(installChef), createChefConfigDir, createClientRb, createValidationPem,
            createFirstBoot, runChef);
   }
View Full Code Here


      userCommands.add("cd " + pwd);
      for (Statement statement : statements) {
         if (statement instanceof Call
               || (statement instanceof StatementList && any(StatementList.class.cast(statement).delegate(),
                     instanceOf(Call.class)))) {
            statement = new ExitInsteadOfReturn(statement);
         }
         userCommands.addAll(Splitter.on('\n').split(statement.render(OsFamily.UNIX)));
      }
      builder.append(appendFile(runScript, userCommands.build(), DELIMITER).render(OsFamily.UNIX));
   }
View Full Code Here

      userCommands.add("cd " + pwd);
      for (Statement statement : statements) {
         if (statement instanceof Call
               || (statement instanceof StatementList && any(StatementList.class.cast(statement).delegate(),
                     instanceOf(Call.class)))) {
            statement = new ExitInsteadOfReturn(statement);
         }
         userCommands.addAll(Splitter.on('\n').split(statement.render(OsFamily.UNIX)));
      }
      builder.append(appendFile(runScript, userCommands.build(), DELIMITER).render(OsFamily.UNIX));
   }
View Full Code Here

         options.put("-E", environment.get().toString());
      }
      String strOptions = Joiner.on(' ').withKeyValueSeparator(" ").join(options.build());
      Statement runChef = exec("chef-client " + strOptions);

      return newStatementList(new ExitInsteadOfReturn(installChef), createChefConfigDir, createClientRb, createValidationPem,
            createFirstBoot, runChef);
   }
View Full Code Here

      userCommands.add("cd " + pwd);
      for (Statement statement : statements) {
         if (statement instanceof Call
               || (statement instanceof StatementList && any(StatementList.class.cast(statement).delegate(),
                     instanceOf(Call.class)))) {
            statement = new ExitInsteadOfReturn(statement);
         }
         userCommands.addAll(Splitter.on('\n').split(statement.render(OsFamily.UNIX)));
      }
      builder.append(appendFile(runScript, userCommands.build(), DELIMITER).render(OsFamily.UNIX));
   }
View Full Code Here

TOP

Related Classes of org.jclouds.scriptbuilder.ExitInsteadOfReturn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.