Sha256: f0baa81d87903f296f0c31d099b499b5edc3c6e5fe3094289113007b2fc8836d

Contents?: true

Size: 351 Bytes

Versions: 243

Compression:

Stored size: 351 Bytes

Contents

# 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

Version data entries

243 entries across 243 versions & 6 rubygems

Version Path
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/cli/remove.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/cli/remove.rb
rubygems-update-3.5.23 bundler/lib/bundler/cli/remove.rb
bundler-2.5.23 lib/bundler/cli/remove.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/bundler-2.4.21/lib/bundler/cli/remove.rb
rubygems-update-3.5.22 bundler/lib/bundler/cli/remove.rb
bundler-2.5.22 lib/bundler/cli/remove.rb
rubygems-update-3.5.21 bundler/lib/bundler/cli/remove.rb
bundler-2.5.21 lib/bundler/cli/remove.rb
rubygems-update-3.5.20 bundler/lib/bundler/cli/remove.rb
bundler-2.5.20 lib/bundler/cli/remove.rb
rubygems-update-3.5.19 bundler/lib/bundler/cli/remove.rb
bundler-2.5.19 lib/bundler/cli/remove.rb
rubygems-update-3.5.18 bundler/lib/bundler/cli/remove.rb
bundler-2.5.18 lib/bundler/cli/remove.rb
rubygems-update-3.5.17 bundler/lib/bundler/cli/remove.rb
bundler-2.5.17 lib/bundler/cli/remove.rb
rubygems-update-3.5.16 bundler/lib/bundler/cli/remove.rb
bundler-2.5.16 lib/bundler/cli/remove.rb
rubygems-update-3.5.15 bundler/lib/bundler/cli/remove.rb