Skip to content

Instantly share code, notes, and snippets.

Created November 22, 2016 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4a91b12e74fff877135aab7eeea265f9 to your computer and use it in GitHub Desktop.
Save anonymous/4a91b12e74fff877135aab7eeea265f9 to your computer and use it in GitHub Desktop.
# previous : https://gist.github.com/anonymous/5c374e52b0fe9551043b01671683a3d7
# if machine_config.triggers && Vagrant.has_plugin?('vagrant-triggers') then
# triggers = machine_config.triggers
#
# if triggers.halt then
# halt = trigggers.halt
# if halt.before then
# halt.before.each do |key_value|
# type = key_value.type
# command = key_value.command
#
# config.trigger.before :halt, :vm => [machine_config.name] do
# eval $type $command
# end
# end
# end
# end
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment