Class: Bundler::Why::Command
- Inherits:
-
Plugin::API
- Object
- Plugin::API
- Bundler::Why::Command
- Defined in:
- lib/bundler/why/command.rb
Overview
Registers and defines the ‘why` command.
Instance Method Summary collapse
Instance Method Details
#exec(_command, args) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/bundler/why/command.rb', line 9 def exec(_command, args) if args.length == 1 why(args.first) else warn 'Usage: bundle why gemname' end end |