Class: DoubleTake::Clean
- Inherits:
-
Bundler::Plugin::API
- Object
- Bundler::Plugin::API
- DoubleTake::Clean
- Defined in:
- lib/double_take/clean.rb
Defined Under Namespace
Modules: Patch
Instance Method Summary collapse
Instance Method Details
#exec(_command, args) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/double_take/clean.rb', line 30 def exec(_command, args) return if !GEMFILE_NEXT_LOCK.file? if args.first != "clean" Bundler.ui.error("Unknown subcommand: '#{args.first}'") return end require "bundler/cli" require "bundler/cli/clean" Bundler::Definition.prepend(DoubleTake::Clean::Patch) = { "dry-run": args.include?("--dry-run"), "force": args.include?("--force"), } Bundler::CLI::Clean.new().run end |
#register_command ⇒ Object
26 27 28 |
# File 'lib/double_take/clean.rb', line 26 def register_command self.class.command("double_take") end |