Download & Extend

Drush Vagrant Integration

Output from a terminal. I know this sucks.

Vagrant gives you the tools to build unique development environments for each project once and then easily tear them down and rebuild them only when they’re needed so you can save time and frustration.

The "drush vagrant" command prompts you for information about Drupal sites running in Vagrant VM and then parses the output of vagrant ssh-config and renders a Drush remote alias for you to stick into your aliases.drushrc.php file.

As an example:

drush vagrant

Attempting to read the Vagrant SSH configuration.
No errors found in the Vagrant SSH configuration. [ok]
Please enter the information about the Drupal site inside the VM.
Alias [drush-vagrant]: tha-vagrant
URI [http://vagrantvm.dev/]: http://local.treehouseagency.com/
Docroot
location [/var/www/html/]: /tha-docroot/
Rendering the remote alias entry.
The remote alias entry is below. Please paste it into an aliases.drushrc.php file.  [ok]

$aliases['tha-vagrant'] = array(
  'uri' => 'http://local.treehouseagency.com/',
  'root' => '/tha-docroot/',
  'remote-host' => 'default',
  'remote-user' => 'vagrant',
  'ssh-options' => "-o'HostName 127.0.0.1' -o'Port 22215' -o'UserKnownHostsFile /dev/null' -o'StrictHostKeyChecking no' -o'PasswordAuthentication no' -o'IdentityFile /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/vagrant-0.8.7/keys/vagrant' -o'IdentitiesOnly yes' ",
);

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0-alpha4 tar.gz (8.34 KB) | zip (9.21 KB) 2012-Apr-04 Notes

Other releases

Version Downloads Date Links
7.x-2.0-alpha0 tar.gz (41.56 KB) | zip (77.21 KB) 2012-May-15 Notes

Development releases

Version Downloads Date Links
7.x-2.x-dev tar.gz (43.46 KB) | zip (79.38 KB) 2012-May-25 Notes

Project Information


Maintainers for Drush Vagrant Integration

  • ergonlogic - 398 commits
    last: 6 hours ago, first: 31 weeks ago
  • Steven Merrill - 2 commits
    last: 7 weeks ago, first: 7 weeks ago

Issues for Drush Vagrant Integration

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here