Update docs for action trigger actions

This commit is contained in:
Brian Cain 2019-01-16 15:29:28 -08:00
parent fefb702359
commit ebacb96626
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 11 additions and 3 deletions

View File

@ -1,9 +1,14 @@
module Vagrant module Vagrant
module Action module Action
module Builtin module Builtin
# After Trigger # This class is intended to be used by the Action::Warden class for executing
# action triggers before any given action.
#
# @param [Symbol] action_name - name to fire trigger on
# @param [Vagrant::Plugin::V2::Triger] triggers - trigger object
class AfterTriggerAction class AfterTriggerAction
# @param [Symbol] action_name - The action class name to fire on # @param [Symbol] action_name - The action class name to fire trigger on
# @param [Vagrant::Plugin::V2::Triger] triggers - trigger object
def initialize(app, env, action_name, triggers) def initialize(app, env, action_name, triggers)
@app = app @app = app
@env = env @env = env

View File

@ -1,8 +1,11 @@
module Vagrant module Vagrant
module Action module Action
module Builtin module Builtin
# Before trigger # This class is intended to be used by the Action::Warden class for executing
# action triggers before any given action.
class BeforeTriggerAction class BeforeTriggerAction
# @param [Symbol] action_name - The action class name to fire trigger on
# @param [Vagrant::Plugin::V2::Triger] triggers - trigger object
def initialize(app, env, action_name, triggers) def initialize(app, env, action_name, triggers)
@app = app @app = app
@env = env @env = env