Skip to content

Instantly share code, notes, and snippets.

@edwardgalligan
Created March 7, 2016 11:46
Show Gist options
  • Save edwardgalligan/a79815990f13537379f7 to your computer and use it in GitHub Desktop.
Save edwardgalligan/a79815990f13537379f7 to your computer and use it in GitHub Desktop.
Logic to check for stuff pre-vagrantbox boot pre-provision
if !File.file?(File.dirname(__FILE__) + '/.vagrant/machines/default/virtualbox/id') &&
# INSERT EXTRA CONDITIONS HERE
puts 'Stuff needed for proper provisioning not found'
puts 'Please ensure the proper stuff is in the proper place'
exit 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment