class Rake::Funnel::Support::Mono
Public Class Methods
invocation(executable, *args)
click to toggle source
# File lib/rake/funnel/support/mono.rb, line 8 def invocation(executable, *args) exe_args = ([executable] << args).flatten.compact return exe_args if Rake::Win32.windows? || wsl? executable = exe_args.shift found = Which.which(executable) || executable exe_args.unshift('mono', found) end
Private Class Methods
wsl?()
click to toggle source
# File lib/rake/funnel/support/mono.rb, line 20 def wsl? File.readable?('/proc/version') && \ File.read('/proc/version').include?('Microsoft') end