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

Inherits:
GemEnvironment 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


225
226
227
228
229
# File 'lib/chef/provider/package/rubygems.rb', line 225

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

#gem_pathsObject


213
214
215
# File 'lib/chef/provider/package/rubygems.rb', line 213

def gem_paths
  Gem.path
end

#gem_source_indexObject


217
218
219
# File 'lib/chef/provider/package/rubygems.rb', line 217

def gem_source_index
  Gem.source_index
end

#gem_specificationObject


221
222
223
# File 'lib/chef/provider/package/rubygems.rb', line 221

def gem_specification
  Gem::Specification
end