lib/bundler/cli/remove.rb
raw| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | module Bundler |
| 4 | class CLI::Remove |
| 5 | def initialize(gems, options) |
| 6 | @gems = gems |
| 7 | @options = options |
| 8 | end |
| 9 | |
| 10 | def run |
| 11 | raise InvalidOption, "Please specify gems to remove." if @gems.empty? |
| 12 | |
| 13 | Injector.remove(@gems, {}) |
| 14 | Installer.install(Bundler.root, Bundler.definition) |
| 15 | end |
| 16 | end |
| 17 | end |