🐬 Quickly toggle between different VVV provisioning scripts
Shell
Latest commit 28ba07e Aug 18, 2016 @bradp committed on GitHub Merge pull request #2 from neilgee/master
Update README.md
Permalink
Failed to load latest commit information.
scripts Finish up most of the set / resetting functionality Sep 16, 2015
.travis.yml Add travis testing Sep 16, 2015
README.md Update README.md Aug 18, 2016
flip Fix VVV typo Oct 15, 2015

README.md

VVV Provision Flipper

🐬 Quickly toggle between different VVV provisioning scripts

Travis

With VVV Provision Flipper, you can easily set up multiple named Varying Vagrant Vagrants provisioning scripts and toggle between them.

This is useful, as you can set a provisioning script, for example, that skips updating the included WordPress version to speed up the process. And then periodically toggle between the quick script and the default version included in VVV.

Using the default quick profile, I was able to bring my provision time down to just 21 seconds, vs the normal 300+ seconds. Your mileage may vary.

Installation

To install, you'll want to add the flip file above to your $PATH. In your terminal, simply do $ echo $PATH and save flip in one of those folders. You may have to $ chmod +x flip in the directory you save as well.

Homebrew installation is planned for the near future.

Usage

The first time you run flip you will be prompted to confirm your VVV path. This process will also set up a scripts folder inside of the provision folder in your VVV installation ( <your-vvv-path>/provision/scripts). Two files will be created, sample and quick. sample will be a copy of the VVV provision script, ready for modifications. quick is a trimmed-down version of default script.

By placing any scripts into this folder, you are able to quick use them as your main provision script by running flip set <name>. To use the quicker version, simply run 'flip set quick'

To reset to using the normal provision script, simply run flip reset.