install_from_gemdeps(options, &block)
public
Installs from the gem dependencies
files in the :gemdeps option in options, yielding to the
block as in #install.
If :without_groups is given in the options, those groups
in the gem dependencies file are not
used. See Gem::Installer for other
options.
# File lib/rubygems/request_set.rb, line 155
def install_from_gemdeps options, &block
gemdeps = options[:gemdeps]
@install_dir = options[:install_dir] || Gem.dir
@remote = options[:domain] != :local
load_gemdeps gemdeps, options[:without_groups]
resolve
if options[:explain]
puts "Gems to install:"
specs.map { |s| s.full_name }.sort.each do |s|
puts " #{s}"
end
if Gem.configuration.really_verbose
@resolver.stats.display
end
else
installed = install options, &block
lockfile = Gem::RequestSet::Lockfile.new self, gemdeps
lockfile.write
installed
end
end