Add comments for later dev
This commit is contained in:
parent
60ff2489c4
commit
a96baad0d7
|
@ -90,6 +90,7 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
# Validate Trigger settings
|
||||
# TODO: Validate not called if there are providers defined in vagrantfile
|
||||
def validate(machine)
|
||||
errors = _detected_errors
|
||||
@_before_triggers.each do |bt|
|
||||
|
|
|
@ -114,12 +114,12 @@ module VagrantPlugins
|
|||
errors = _detected_errors
|
||||
|
||||
commands = []
|
||||
# TODO: Should this be cached...?
|
||||
Vagrant.plugin("2").manager.commands.each do |key,data|
|
||||
commands.push(key)
|
||||
end
|
||||
|
||||
if !commands.include?(@command)
|
||||
# does this make sense to print on this machine?
|
||||
machine.ui.warn(I18n.t("vagrant.config.triggers.bad_command_warning",
|
||||
cmd: @command))
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue