drupal_ti icon indicating copy to clipboard operation
drupal_ti copied to clipboard

Drush alias

Open Decipher opened this issue 10 years ago • 4 comments

It'd be really nice if a Drush alias was created and 'drush use'd so that interactions with the Drupal site could be done without the need of navigating the filesystem.

Decipher avatar Jul 30 '15 07:07 Decipher

I still think this makes sense regardless of this, especially using the behat extension with its alias feature.

LionsAd avatar Jul 30 '15 14:07 LionsAd

I agree it makes sense, although I'm not familiar with the alias feature of the behat extension, will look into it.

Ideally I was hoping to take a super simple approach to the Alias, by piping the output of 'drush sa @self' from within the site directory out to an alias file, which would get you halfway there, but the assigned alias would be 'self', which is relatively un-descriptive.

The other reason I didn't go down that track is just my lack of understanding on how best to fork and test a composer based package with Travis. I did try forking, and updating the namespace for the drupal_ti, but it appears it's not as easy as that, so any advice would be appreciated.

Decipher avatar Jul 30 '15 23:07 Decipher

Forking is really simple:

Just fork and then instead of:

composer require lionsad/drupal_ti

you do something like:

- git clone yourrepo/drupal_ti
- mkdir -p "$HOME/.composer/vendor/bin"
- ln -sf $(pwd)/drupal_ti/drupal-ti "$HOME/.composer/vendor/bin"

drupal_ti can work from everwhere.

That is the trick I use to have drupal_ti test 'itself'.

LionsAd avatar Jul 31 '15 09:07 LionsAd

Thanks, that's clearly obvious. I'll give it a spin shortly.

Decipher avatar Jul 31 '15 09:07 Decipher