Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow remote commands to work on sandboxen #2253

Merged
merged 3 commits into from
Dec 3, 2021
Merged

Conversation

greg-1-anderson
Copy link
Member

@greg-1-anderson greg-1-anderson commented Nov 17, 2021

Look up host for 'terminus drush' / 'terminus wp' commands via an alternate nameserver, if selected.

In order for this to work, Terminus also needs access to the \Net_DNS2_Resolver class. There are two ways we could provide this:

  1. composer require pear/net_dns2 in Terminus itself
  2. Add pear/net_dns2 as a dependency of the Terminus admin plugin

The advantage of option #2 is that it keeps pear/net_dns2 out of the distribution terminus.phar, since most users won't need it.

Add TERMINUS_ALTERNATE_NAMESERVER=eco.onebox.panth.io to your termineco alias to use this with sandbox-eco.

@greg-1-anderson greg-1-anderson requested a review from a team as a code owner November 17, 2021 05:23
*
* @return string
*/
private function lookupHostViaAlternateNameserver($host)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@greg-1-anderson Should we type hint method args and return values?

@greg-1-anderson greg-1-anderson merged commit c4c5495 into 3.x Dec 3, 2021
@greg-1-anderson greg-1-anderson deleted the alternate-nameserver branch December 3, 2021 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants