Class: VagrantPlugins::Vundler::PluginCommand::Root

Inherits:
CommandPlugin::Command::Root
  • Object
show all
Defined in:
lib/vundler/plugin_command/root.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv, env) ⇒ Root

Returns a new instance of Root.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/vundler/plugin_command/root.rb', line 7

def initialize(argv, env)
  super

  # Override the built in `plugin list` command to output project specific
  # plugins information
  @subcommands.register(:list) do
    require_relative "list"
    Vundler::PluginCommand::List
  end

  @subcommands.register(:bundle) do
    require_relative "bundle"
    Vundler::PluginCommand::Bundle
  end
end