Open jhedstrom opened 2 years ago
I'm open to the idea, but could you be more specific about what you're interested in porting?
Most of the methods in BLT's detector are specific to certain environments (Pantheon, Travis, Pipelines, etc), or they deal with BLT-isms like detector overrides, and I'd prefer to exclude those from this library.
The methods that initially made me realize it wasn't already part of this project were the Pantheon detection ones. Honestly I'd say any of the methods that only rely on this library could be moved here to allow broader use outside of BLT projects.
@jhedstrom @danepowell
I think we need a drupal/environment-detector
that all the other environment detectors can extend.
A dev can dream....
There is some pretty useful additions the the environment detector, currently bundled within BLT, that would be nice to have in this project. The use case is for projects that are not using all of BLT, but would still like consistent detection across platforms.
There are probably some things in there that would need to remain BLT-specific, but most of the methods appear to be agnostic of BLT.