module IsWsl
Constants
- VERSION
Public Class Methods
wsl?()
click to toggle source
# File lib/is_wsl.rb, line 7 def self.wsl? !IsDocker.docker? && !File.readlines('/proc/version').grep(/microsoft/i).empty? rescue Errno::ENOENT false end