GetValkyrie/valkyrie-drush-aliases

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

VALKYRIE-DRUSH-ALIASES

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"
Background

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.