method

install_gem

ruby latest stable - Class: Bundler::GemHelper

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

install_gem(built_gem_path = nil, local = false)
public

No documentation available.

# File lib/bundler/gem_helper.rb, line 86
    def install_gem(built_gem_path = nil, local = false)
      built_gem_path ||= build_gem
      out, _ = sh_with_code("gem install '#{built_gem_path}'#{" --local" if local}")
      raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/]
      Bundler.ui.confirm "#{name} (#{version}) installed."
    end