When Ruby is running inside of WSL, it can be difficult to tell the difference between truly running on Linux and running within WSL.
The best way I have found to identify if it is WSL is...
def self.wsl?
`cat /proc/version` =~ /Microsoft/ if linux?
end
I am happy to submit a patch and test if wanted.
When Ruby is running inside of WSL, it can be difficult to tell the difference between truly running on Linux and running within WSL.
The best way I have found to identify if it is WSL is...
I am happy to submit a patch and test if wanted.