Skip to content

How do we add more transport mechanisms? #52

@hussainweb

Description

@hussainweb

This is a support request.

I know a transport manager was added in #20 but I can't figure out a way to add more transports at runtime (per site). I was looking for something I could add with configuration on a per-site basis or by including a package in composer.json or by some other such mechanism. Something like "contrib modules".

I'm trying to add different ways to invoke drush in containers which are not docker-compose (or some other wrapper). For example, I want to add a site alias that runs drush in an OpenShift cluster for a specific project.

If adding a Transport in this project is the only way, how about adding a custom Transport that lets you wrap drush calls to a different command. So, drush @stage status could become oc rsh ... drush status. This would be very similar to the existing Docker Transport but would work for various wrappers such as oc, kubectl, or even ddev and lando.

I know there's a drush-alias setting but last I checked, there was a limitation that it only runs on a remote-host. That wouldn't make sense in these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions