Module: RubyInstaller::Build::Gems

Defined in:
lib/ruby_installer/build/gems.rb

Defined Under Namespace

Classes: InstallSpec

Class Method Summary collapse

Class Method Details

.install(*gems, **options) ⇒ Object



63
64
65
66
67
68
69
70
71
# File 'lib/ruby_installer/build/gems.rb', line 63

def self.install(*gems, **options)
  gems.each do |name|
    spec = InstallSpec.new(name)
    options.each do |key, value|
      spec.send("#{key}=", value)
    end
    spec.install
  end
end