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

Add custom transport to allow wrapping with any command #61

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hussainweb
Copy link

Overview

This pull request:

Q A
Bug fix? no
New feature? yes
Has tests? yes
BC breaks? no
Deprecations? no

Summary

This adds a new option to site aliases which lets users specify any command to wrap invoked processes (such as drush).

Description

More details in #52.

*/
public function check(SiteAliasInterface $siteAlias)
{
return $siteAlias->has('command');
Copy link
Member

Choose a reason for hiding this comment

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

This seems too generic

Copy link
Author

Choose a reason for hiding this comment

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

@greg-1-anderson, I agree. I hesitated to put it in but on thinking more, it started making sense as the functionality is really that generic. That said, I am open to alternatives.

@codecov
Copy link

codecov bot commented Mar 4, 2022

Codecov Report

Merging #61 (1f29422) into main (59f391e) will decrease coverage by 0.22%.
The diff coverage is 70.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main      #61      +/-   ##
============================================
- Coverage     78.41%   78.19%   -0.23%     
- Complexity      164      172       +8     
============================================
  Files            18       20       +2     
  Lines           417      431      +14     
============================================
+ Hits            327      337      +10     
- Misses           90       94       +4     
Impacted Files Coverage Δ
src/Factory/CustomTransportFactory.php 50.00% <50.00%> (ø)
src/Transport/CustomTransport.php 73.33% <73.33%> (ø)
src/ProcessManager.php 77.50% <100.00%> (+0.57%) ⬆️
src/Transport/SshTransport.php 100.00% <0.00%> (ø)
src/Transport/KubectlTransport.php 76.19% <0.00%> (+1.19%) ⬆️
src/Transport/VagrantTransport.php 72.22% <0.00%> (+2.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59f391e...1f29422. Read the comment docs.

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