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, #install, #installed_versions, #uninstall, #uninstaller, #with_correct_verbosity, #with_gem_sources

Instance Method Details

#candidate_version_from_remote(gem_dependency, *sources) ⇒ Object



205
206
207
208
209
# File 'lib/chef/provider/package/rubygems.rb', line 205

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

#gem_pathsObject



197
198
199
# File 'lib/chef/provider/package/rubygems.rb', line 197

def gem_paths
  Gem.path
end

#gem_source_indexObject



201
202
203
# File 'lib/chef/provider/package/rubygems.rb', line 201

def gem_source_index
  Gem.source_index
end