mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
b45fe48fbb
Closes https://github.com/rubygems/rubygems/issues/4889 https://github.com/rubygems/rubygems/commit/2b1754479c
17 lines
351 B
Ruby
17 lines
351 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Bundler
|
|
class CLI::Remove
|
|
def initialize(gems, options)
|
|
@gems = gems
|
|
@options = options
|
|
end
|
|
|
|
def run
|
|
raise InvalidOption, "Please specify gems to remove." if @gems.empty?
|
|
|
|
Injector.remove(@gems, {})
|
|
Installer.install(Bundler.root, Bundler.definition)
|
|
end
|
|
end
|
|
end
|