Tabnine Logo
InstallRubyGems$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
org.jclouds.scriptbuilder.statements.ruby.InstallRubyGems$Builder

Best Java code snippets using org.jclouds.scriptbuilder.statements.ruby.InstallRubyGems$Builder.build (Showing top 20 results out of 315)

origin: apache/jclouds

@Provides
@Named("installChefGems")
@Singleton
final Statement installChefGems(BootstrapProperties bootstrapProperties) {
 InstallRubyGems installRubyGems = InstallRubyGems.builder()
    .version(bootstrapProperties.gemSystemVersion().orNull())
    .updateSystem(bootstrapProperties.updateGemSystem(), bootstrapProperties.gemSystemVersion().orNull())
    .updateExistingGems(bootstrapProperties.updateGems()) //
    .build();
 Statement installChef = InstallChefGems.builder().version(bootstrapProperties.chefVersion().orNull()).build();
 return new StatementList(InstallRuby.builder().build(), installRubyGems, installChef);
}
origin: org.apache.jclouds.api/chef

@Provides
@Named("installChefGems")
@Singleton
final Statement installChefGems(BootstrapProperties bootstrapProperties) {
 InstallRubyGems installRubyGems = InstallRubyGems.builder()
    .version(bootstrapProperties.gemSystemVersion().orNull())
    .updateSystem(bootstrapProperties.updateGemSystem(), bootstrapProperties.gemSystemVersion().orNull())
    .updateExistingGems(bootstrapProperties.updateGems()) //
    .build();
 Statement installChef = InstallChefGems.builder().version(bootstrapProperties.chefVersion().orNull()).build();
 return new StatementList(InstallRuby.builder().build(), installRubyGems, installChef);
}
origin: jclouds/legacy-jclouds-chef

@Provides
@Named("installChefGems")
@Singleton
Statement installChef(BootstrapProperties bootstrapProperties) {
 InstallRubyGems installRubyGems = InstallRubyGems.builder()
    .version(bootstrapProperties.gemSystemVersion().orNull())
    .updateSystem(bootstrapProperties.updateGemSystem(), bootstrapProperties.gemSystemVersion().orNull())
    .updateExistingGems(bootstrapProperties.updateGems()) //
    .build();
 Statement installChef = InstallChefGems.builder().version(bootstrapProperties.chefVersion().orNull()).build();
 return new StatementList(InstallRuby.builder().build(), installRubyGems, installChef);
}
origin: jclouds/legacy-jclouds-examples

bootstrapBuilder.add(InstallRubyGems.builder().build());
origin: apache/jclouds

public void installRubyGemsForcingVersion() throws IOException {
 assertEquals(InstallRubyGems.builder().version("1.8.25").build().render(OsFamily.UNIX), installRubyGems("1.8.25"));
}
origin: apache/jclouds

public void installRubyGemsDefaultsUnix() throws IOException {
 assertEquals(InstallRubyGems.builder().build().render(OsFamily.UNIX), installRubyGems(DEFAULT_RUBYGEMS_VERSION));
}
origin: apache/jclouds

public void installRubyGemsAndUpdateSystemForcingUpdateVersion() throws IOException {
 assertEquals(InstallRubyGems.builder().updateSystem(true, "1.8.25").build().render(OsFamily.UNIX),
    installRubyGems(DEFAULT_RUBYGEMS_VERSION) + updateSystem("1.8.25"));
}
origin: apache/jclouds

public void installRubyGemsDefaultsWithUpgrade() throws IOException {
 assertEquals(InstallRubyGems.builder().updateSystem(true).updateExistingGems(true).build().render(OsFamily.UNIX),
    Resources.toString(Resources.getResource("test_install_rubygems." + ShellToken.SH.to(OsFamily.UNIX)),
       Charsets.UTF_8));
}
origin: apache/jclouds

public void installRubyGemsUpdatingSystemAndGems() throws IOException {
 assertEquals(InstallRubyGems.builder().version("1.2.3").updateSystem(true, "1.2.4").updateExistingGems(true)
    .build().render(OsFamily.UNIX), installRubyGems("1.2.3") + updateSystem("1.2.4") + updateGems());
}
origin: apache/jclouds

public void installRubyGemsAndUpdateGems() throws IOException {
 assertEquals(InstallRubyGems.builder().updateExistingGems(true).build().render(OsFamily.UNIX),
    installRubyGems(DEFAULT_RUBYGEMS_VERSION) + updateGems());
}
origin: apache/jclouds

public void installRubyGemsAndUpdateSystem() throws IOException {
 assertEquals(InstallRubyGems.builder().updateSystem(true).build().render(OsFamily.UNIX),
    installRubyGems(DEFAULT_RUBYGEMS_VERSION) + updateSystem(null));
}
origin: jclouds/legacy-jclouds

public void installRubyGemsDefaultsUnix() throws IOException {
 assertEquals(InstallRubyGems.builder().build().render(OsFamily.UNIX), installRubyGems(DEFAULT_RUBYGEMS_VERSION));
}
origin: jclouds/legacy-jclouds

public void installRubyGemsForcingVersion() throws IOException {
 assertEquals(InstallRubyGems.builder().version("1.8.25").build().render(OsFamily.UNIX), installRubyGems("1.8.25"));
}
origin: apache/jclouds

public void installRubyGemsUnixDefaultsInScriptBuilder() throws IOException {
 assertEquals(
    InitScript.builder().name("install_rubygems").run(InstallRubyGems.builder().build()).build()
       .render(OsFamily.UNIX), Resources.toString(
       Resources.getResource("test_install_rubygems_scriptbuilder." + ShellToken.SH.to(OsFamily.UNIX)),
       Charsets.UTF_8));
}
origin: jclouds/legacy-jclouds

public void installRubyGemsUpdatingSystemAndGems() throws IOException {
 assertEquals(InstallRubyGems.builder().version("1.2.3").updateSystem(true, "1.2.4").updateExistingGems(true)
    .build().render(OsFamily.UNIX), installRubyGems("1.2.3") + updateSystem("1.2.4") + updateGems());
}
origin: jclouds/legacy-jclouds

public void installRubyGemsAndUpdateSystem() throws IOException {
 assertEquals(InstallRubyGems.builder().updateSystem(true).build().render(OsFamily.UNIX),
    installRubyGems(DEFAULT_RUBYGEMS_VERSION) + updateSystem(null));
}
origin: jclouds/legacy-jclouds

public void installRubyGemsAndUpdateSystemForcingUpdateVersion() throws IOException {
 assertEquals(InstallRubyGems.builder().updateSystem(true, "1.8.25").build().render(OsFamily.UNIX),
    installRubyGems(DEFAULT_RUBYGEMS_VERSION) + updateSystem("1.8.25"));
}
origin: jclouds/legacy-jclouds

public void installRubyGemsAndUpdateGems() throws IOException {
 assertEquals(InstallRubyGems.builder().updateExistingGems(true).build().render(OsFamily.UNIX),
    installRubyGems(DEFAULT_RUBYGEMS_VERSION) + updateGems());
}
origin: jclouds/legacy-jclouds

public void installRubyGemsDefaultsWithUpgrade() throws IOException {
 assertEquals(InstallRubyGems.builder().updateSystem(true).updateExistingGems(true).build().render(OsFamily.UNIX),
    Resources.toString(Resources.getResource("test_install_rubygems." + ShellToken.SH.to(OsFamily.UNIX)),
       Charsets.UTF_8));
}
origin: jclouds/legacy-jclouds

public void installRubyGemsUnixDefaultsInScriptBuilder() throws IOException {
 assertEquals(
    InitScript.builder().name("install_rubygems").run(InstallRubyGems.builder().build()).build()
       .render(OsFamily.UNIX), Resources.toString(
       Resources.getResource("test_install_rubygems_scriptbuilder." + ShellToken.SH.to(OsFamily.UNIX)),
       Charsets.UTF_8));
}
org.jclouds.scriptbuilder.statements.rubyInstallRubyGems$Builderbuild

Popular methods of InstallRubyGems$Builder

  • <init>
  • updateExistingGems
    Update the existing gems after installing RubyGems.
  • updateSystem
    Update the gem system after installing RubyGems, forcing the update to a concrete version.
  • version
    The version of RubyGems to install.

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JList (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now