Include before/after options in final provision hash
This commit is contained in:
parent
6db03f2aed
commit
6777493c46
|
@ -29,6 +29,8 @@ module Vagrant
|
||||||
options = {
|
options = {
|
||||||
name: provisioner.name,
|
name: provisioner.name,
|
||||||
run: provisioner.run,
|
run: provisioner.run,
|
||||||
|
before: provisioner.before,
|
||||||
|
after: provisioner.after,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Return the result
|
# Return the result
|
||||||
|
@ -38,6 +40,13 @@ module Vagrant
|
||||||
return @_provisioner_instances.compact
|
return @_provisioner_instances.compact
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Sorts provisioners based on order specified with before/after options
|
||||||
|
#
|
||||||
|
# @return [Array<Provisioner, Hash>]
|
||||||
|
def sort_provisioner_instances(pvs)
|
||||||
|
return pvs
|
||||||
|
end
|
||||||
|
|
||||||
# This will return a mapping of a provisioner instance to its
|
# This will return a mapping of a provisioner instance to its
|
||||||
# type.
|
# type.
|
||||||
def provisioner_type_map(env)
|
def provisioner_type_map(env)
|
||||||
|
|
|
@ -105,6 +105,8 @@ module VagrantPlugins
|
||||||
@config.finalize!
|
@config.finalize!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Validates the before/after options
|
||||||
|
#
|
||||||
# @param [Vagrant::Machine] machine - machine to validate against
|
# @param [Vagrant::Machine] machine - machine to validate against
|
||||||
# @param [Array<Symbol>] provisioner_names - Names of provisioners for a given machine
|
# @param [Array<Symbol>] provisioner_names - Names of provisioners for a given machine
|
||||||
# @return [Array] array of strings of error messages from config option validation
|
# @return [Array] array of strings of error messages from config option validation
|
||||||
|
|
Loading…
Reference in New Issue