Method: VPM::Runner.run_command
- Defined in:
- lib/vpm/runner.rb
.run_command(command, args) ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/vpm/runner.rb', line 40 def self.run_command(command, args) parser = CommandOptions.parser(command) = parser.parse!(args) plugin_name = args[1] unless plugin_name puts parser.opts_parser exit end type = .delete(:type) plugin = Plugin.new(plugin_name, type, ) plugin.run_command(command) end |