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