Package org.jclouds.scriptbuilder.statements.git

Examples of org.jclouds.scriptbuilder.statements.git.InstallGit


*/
@Test(groups = "unit", testName = "InstallGitTest")
public class InstallGitTest {

   public void testInstallGitUNIX() throws IOException {
      assertEquals(new InstallGit().render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallGit || return 1\n");
   }
View Full Code Here


   public void testInstallGitUNIX() throws IOException {
      assertEquals(new InstallGit().render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallGit || return 1\n");
   }

   public void testInstallGitUNIXInScriptBuilderSourcesSetupPublicCurl() throws IOException {
      assertEquals(InitScript.builder().name("install_git").run(new InstallGit()).build().render(OsFamily.UNIX),
               Resources.toString(Resources.getResource("test_install_git_scriptbuilder." + ShellToken.SH.to(OsFamily.UNIX)), Charsets.UTF_8));
   }
View Full Code Here

            case SOLO:
               System.out.printf(">> installing [%s] on group %s as %s%n", recipes, groupName, login.identity);

               Iterable<String> recipeList = Splitter.on(',').split(recipes);
               ImmutableList.Builder<Statement> bootstrapBuilder = ImmutableList.builder();
               bootstrapBuilder.add(new InstallGit());

               // Clone community cookbooks into the node
               for (String recipe : recipeList) {
                  bootstrapBuilder.add(CloneGitRepo.builder()
                        .repository("git://github.com/opscode-cookbooks/" + recipe + ".git")
View Full Code Here

*/
@Test(groups = "unit", testName = "InstallGitTest")
public class InstallGitTest {

   public void testInstallGitUNIX() throws IOException {
      assertEquals(new InstallGit().render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallGit || return 1\n");
   }
View Full Code Here

   public void testInstallGitUNIX() throws IOException {
      assertEquals(new InstallGit().render(OsFamily.UNIX), "setupPublicCurl || return 1\ninstallGit || return 1\n");
   }

   public void testInstallGitUNIXInScriptBuilderSourcesSetupPublicCurl() throws IOException {
      assertEquals(InitScript.builder().name("install_git").run(new InstallGit()).build().render(OsFamily.UNIX),
               Resources.toString(Resources.getResource("test_install_git_scriptbuilder." + ShellToken.SH.to(OsFamily.UNIX)), Charsets.UTF_8));
   }
View Full Code Here

                    System.out.printf(">> installing [%s] on group %s as %s%n", recipes, groupName,
                            login.identity);

                    Iterable<String> recipeList = Splitter.on(',').split(recipes);
                    ImmutableList.Builder<Statement> bootstrapBuilder = ImmutableList.builder();
                    bootstrapBuilder.add(new InstallGit());

                    // Clone community cookbooks into the node
                    for (String recipe : recipeList) {
                        bootstrapBuilder.add(CloneGitRepo.builder()
                                .repository("git://github.com/opscode-cookbooks/" + recipe + ".git")
View Full Code Here

TOP

Related Classes of org.jclouds.scriptbuilder.statements.git.InstallGit

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.