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

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

Best Java code snippets using org.jclouds.scriptbuilder.statements.ruby.InstallRubyGems$Builder.updateExistingGems (Showing top 10 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.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: 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: 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: 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 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 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 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));
}
org.jclouds.scriptbuilder.statements.rubyInstallRubyGems$BuilderupdateExistingGems

Javadoc

Update the existing gems after installing RubyGems.

Popular methods of InstallRubyGems$Builder

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

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Top 12 Jupyter Notebook extensions
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