Add more doc to create_trigger function

This commit is contained in:
Brian Cain 2018-03-13 11:25:35 -07:00
parent c10ae070b6
commit 50ecf45d50
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 5 additions and 0 deletions

View File

@ -63,8 +63,13 @@ module VagrantPlugins
# Internal methods, don't call these.
#-------------------------------------------------------------------
# Creates a new trigger config. If a block is given, parse that block
# by calling it with the created trigger. Otherwise set the options if it's
# a hash.
#
# @param [Symbol] command Vagrant command to create trigger on
# @param [Block] block The defined config block
# @return [VagrantConfigTrigger]
def create_trigger(command, block)
trigger = VagrantConfigTrigger.new(command)
if block.is_a?(Hash)