123456789_123456789_123456789_123456789_123456789_

Class: Bundler::CLI::Remove

Relationships & Source Files
Inherits: Object
Defined in: lib/bundler/cli/remove.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(gems, options) ⇒ Remove

[ GitHub ]

  
# File 'lib/bundler/cli/remove.rb', line 5

def initialize(gems, options)
  @gems = gems
  @options = options
end

Instance Method Details

#run

Raises:

[ GitHub ]

  
# File 'lib/bundler/cli/remove.rb', line 10

def run
  raise InvalidOption, "Please specify gems to remove." if @gems.empty?

  Injector.remove(@gems, {})

  Installer.install(Bundler.root, Bundler.definition) if @options["install"]
end