Add basic trigger plugin scaffold
This commit is contained in:
parent
a5d8cc1caa
commit
4ecf682265
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue