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

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

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

origin: jclouds/legacy-jclouds-examples

bootstrapBuilder.add(InstallRubyGems.builder().build());
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: 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: apache/jclouds

public static Builder builder() {
 return new Builder();
}
origin: apache/jclouds

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

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

public static Builder builder() {
 return new Builder();
}
origin: org.jclouds/jclouds-scriptbuilder

public static Builder builder() {
 return new Builder();
}
origin: io.cloudsoft.jclouds/jclouds-scriptbuilder

public static Builder builder() {
 return new Builder();
}
origin: org.apache.jclouds/jclouds-scriptbuilder

public static Builder builder() {
 return new Builder();
}
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 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 installRubyGemsForcingVersion() throws IOException {
 assertEquals(InstallRubyGems.builder().version("1.8.25").build().render(OsFamily.UNIX), installRubyGems("1.8.25"));
}
origin: jclouds/legacy-jclouds

public static Builder builder() {
 return new Builder();
}
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: 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: org.jclouds.api/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

public void installRubyGemsAndUpdateSystem() throws IOException {
 assertEquals(InstallRubyGems.builder().updateSystem(true).build().render(OsFamily.UNIX),
    installRubyGems(DEFAULT_RUBYGEMS_VERSION) + updateSystem(null));
}
org.jclouds.scriptbuilder.statements.rubyInstallRubyGems$Builder

Most used methods

  • build
  • <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

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim 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