Method: Bundler::Plugin.exec_command
- Defined in:
- lib/bundler/plugin.rb
.exec_command(command, args) ⇒ Object
To be called from Cli class to pass the command and argument to appropriate plugin class
171 172 173 174 175 176 177 |
# File 'lib/bundler/plugin.rb', line 171 def exec_command(command, args) raise UndefinedCommandError, "Command `#{command}` not found" unless command? command load_plugin index.command_plugin(command) unless @commands.key? command @commands[command].new.exec(command, args) end |