Class: PryGem::GemInstall
- Inherits:
-
Pry::ClassCommand
- Object
- Pry::ClassCommand
- PryGem::GemInstall
- Defined in:
- lib/pry-gem/gem_install.rb
Overview
Instance Method Summary collapse
Instance Method Details
#process(gem) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/pry-gem/gem_install.rb', line 22 def process(gem) Rubygem.install(gem) output.puts "Gem `#{green(gem)}` installed." require gem rescue LoadError require_path = gem.split('-').join('/') require require_path end |
#setup ⇒ Object
18 19 20 |
# File 'lib/pry-gem/gem_install.rb', line 18 def setup require 'rubygems/dependency_installer' unless defined? Gem::DependencyInstaller end |