congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
InstallRubyGems
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jclouds/legacy-jclouds

public InstallRubyGems build() {
  return new InstallRubyGems(version, updateSystem, updateSystemVersion, updateExistingGems);
}
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: apache/jclouds

public void installRubyGemsDefaultsUnix() throws IOException {
 assertEquals(InstallRubyGems.builder().build().render(OsFamily.UNIX), installRubyGems(DEFAULT_RUBYGEMS_VERSION));
}
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: jclouds/legacy-jclouds

public void installRubyGemsForcingVersion() throws IOException {
 assertEquals(InstallRubyGems.builder().version("1.8.25").build().render(OsFamily.UNIX), installRubyGems("1.8.25"));
}
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: com.amysta.jclouds/jclouds-scriptbuilder

public InstallRubyGems build() {
  return new InstallRubyGems(version, updateSystem, updateSystemVersion, updateExistingGems);
}
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-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: io.cloudsoft.jclouds/jclouds-scriptbuilder

public InstallRubyGems build() {
  return new InstallRubyGems(version, updateSystem, updateSystemVersion, updateExistingGems);
}
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 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: org.jclouds/jclouds-scriptbuilder

public InstallRubyGems build() {
  return new InstallRubyGems(version, updateSystem, updateSystemVersion, updateExistingGems);
}
origin: apache/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-examples

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

public InstallRubyGems build() {
  return new InstallRubyGems(version, updateSystem, updateSystemVersion, updateExistingGems);
}
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 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: apache/jclouds

public InstallRubyGems build() {
  return new InstallRubyGems(version, updateSystem, updateSystemVersion, updateExistingGems);
}
org.jclouds.scriptbuilder.statements.rubyInstallRubyGems

Javadoc

Installs RubyGems onto a host.

Most used methods

  • builder
  • <init>
  • render

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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