Skip to content

Instantly share code, notes, and snippets.

@petems
Created July 30, 2014 15:53
Show Gist options
  • Save petems/5104d152dfadb972e429 to your computer and use it in GitHub Desktop.
Save petems/5104d152dfadb972e429 to your computer and use it in GitHub Desktop.
A way to get plugin actions to run in a certain order
# Add this to the plugin.rb file in your Vagrant plugin
action_hook(:foo_action, Plugin::ALL_ACTIONS) do |hook|
require_relative 'action/foo_action'
hook.after(Vagrant::Action::Builtin::SyncedFolders, Action::FooAction)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment