Name: valkyrie-drush-aliases
Owner: Valkyrie
Description: Add and remove locations for Drush to search for aliases. (For any issues, see the general Valkyrie queue: https://github.com/GetValkyrie/valkyrie/issues)
Created: 2015-02-27 19:02:22.0
Updated: 2015-04-22 18:19:54.0
Pushed: 2015-04-22 18:19:54.0
Homepage: http://www.getvalkyrie.com
Size: 148
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This 'faux' plugin for Vagrant allows for Drush aliases to be generated in the VM to be cleanly ignored when the VM is no longer available; having been halted, destroyed, etc. Simply add it to your project (perhaps as a git submodule), and include it in your Vagrantfile like so:
ENV['VALKYRIE_PROJECT_PATH'] = File.dirname(File.expand_path(__FILE__))
require_relative "drush-aliases.rb"
Drush aliases are great, but if they point to sites hosted on a Vagrant VM that has been suspended (or otherwise unavailable), errors will result. Worse still, if you are using the same aliases for sites hosted on more than one Vagrant VM, your aliases will end up pointing at the wrong IP/hostname, leading to behaviour that is difficult to diagnose.