Add basic trigger plugin scaffold

This commit is contained in:
Brian Cain 2018-03-22 15:40:17 -07:00
parent a5d8cc1caa
commit 4ecf682265
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
2 changed files with 24 additions and 0 deletions

View File

@ -19,6 +19,7 @@ module Vagrant
autoload :Push, "vagrant/plugin/v2/push"
autoload :Provisioner, "vagrant/plugin/v2/provisioner"
autoload :SyncedFolder, "vagrant/plugin/v2/synced_folder"
autoload :Trigger, "vagrant/plugin/v2/trigger"
end
end
end

View File

@ -0,0 +1,23 @@
require 'log4r'
module Vagrant
module Plugin
module V2
# This is the base class for a trigger for the V2 API. A provisioner
# is primarily responsible for installing software on a Vagrant guest.
class Trigger
attr_reader :config
# Trigger
#
# @param [Object] env Vagrant environment
# @param [Object] config Trigger configuration
def initialize(env, config)
@env = env
@config = config
@logger = Log4r::Logger.new("vagrant::trigger::#{self.class.to_s.downcase}")
end
end
end
end
end