Include local flag for plugin update command
This commit is contained in:
parent
3fd55dac23
commit
7a623d2826
|
@ -10,9 +10,14 @@ module VagrantPlugins
|
||||||
include MixinInstallOpts
|
include MixinInstallOpts
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
|
options = {}
|
||||||
opts = OptionParser.new do |o|
|
opts = OptionParser.new do |o|
|
||||||
o.banner = "Usage: vagrant plugin update [names...] [-h]"
|
o.banner = "Usage: vagrant plugin update [names...] [-h]"
|
||||||
o.separator ""
|
o.separator ""
|
||||||
|
|
||||||
|
o.on("--local", "Remove plugin from local project") do |l|
|
||||||
|
options[:env_local] = l
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Parse the options
|
# Parse the options
|
||||||
|
@ -22,6 +27,7 @@ module VagrantPlugins
|
||||||
# Update the gem
|
# Update the gem
|
||||||
action(Action.action_update, {
|
action(Action.action_update, {
|
||||||
plugin_name: argv,
|
plugin_name: argv,
|
||||||
|
env_local: options[:env_local]
|
||||||
})
|
})
|
||||||
|
|
||||||
# Success, exit status 0
|
# Success, exit status 0
|
||||||
|
|
Loading…
Reference in New Issue