Class: Chef::Provider::Package::Rubygems::CurrentGemEnvironment

Inherits:
GemEnvironment
  • Object
show all
Defined in:
lib/chef/provider/package/rubygems.rb

Constant Summary

Constants inherited from GemEnvironment

GemEnvironment::DEFAULT_UNINSTALLER_OPTS

Instance Method Summary collapse

Methods inherited from GemEnvironment

#candidate_version_from_file, #dependency_installer, #find_newest_remote_version, #initialize, #install, #installed_versions, #spec_from_file, #uninstall, #uninstaller, #with_correct_verbosity, #with_gem_sources

Constructor Details

This class inherits a constructor from Chef::Provider::Package::Rubygems::GemEnvironment

Instance Method Details

#candidate_version_from_remote(gem_dependency, *sources) ⇒ Object



281
282
283
284
285
# File 'lib/chef/provider/package/rubygems.rb', line 281

def candidate_version_from_remote(gem_dependency, *sources)
  with_gem_sources(*sources) do
    find_newest_remote_version(gem_dependency, *sources)
  end
end

#gem_pathsObject



265
266
267
# File 'lib/chef/provider/package/rubygems.rb', line 265

def gem_paths
  Gem.path
end

#gem_source_indexObject



269
270
271
# File 'lib/chef/provider/package/rubygems.rb', line 269

def gem_source_index
  Gem.source_index
end

#gem_specificationObject



273
274
275
# File 'lib/chef/provider/package/rubygems.rb', line 273

def gem_specification
  Gem::Specification
end

#rubygems_versionObject



277
278
279
# File 'lib/chef/provider/package/rubygems.rb', line 277

def rubygems_version
  Gem::VERSION
end