Class Chef::Provider::Package::Rubygems::AlternateGemEnvironment
In: lib/chef/provider/package/rubygems.rb
Parent: GemEnvironment

Methods

Included Modules

Chef::Mixin::ShellOut

Constants

JRUBY_PLATFORM = /(:?universal|x86_64|x86)\-java\-[0-9\.]+/

Attributes

gem_binary_location  [R] 

Public Class methods

Public Instance methods

Attempt to detect the correct platform settings for the target gem environment.

In practice, this only makes a difference if different versions are available depending on platform, and only if the target gem environment has a radically different platform (i.e., jruby), so we just try to detect jruby and fall back to the current platforms (Gem.platforms) if we don‘t detect it.

Returns

String|Gem::Platform
returns an array of Gem::Platform-compatible

objects, i.e., Strings that are valid for Gem::Platform or actual Gem::Platform objects.

[Validate]