Class: Bundler::CLI::Remove
- Inherits:
-
Object
- Object
- Bundler::CLI::Remove
- Defined in:
- lib/bundler/cli/remove.rb
Instance Method Summary collapse
-
#initialize(gems, options) ⇒ Remove
constructor
A new instance of Remove.
- #run ⇒ Object
Constructor Details
#initialize(gems, options) ⇒ Remove
Returns a new instance of Remove.
5 6 7 8 |
# File 'lib/bundler/cli/remove.rb', line 5 def initialize(gems, ) @gems = gems @options = end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 |
# 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 |