class Aruba::Platforms::WindowsWhich::AbsoluteOrRelativePathWhich
Find path for absolute or relative command
Public Class Methods
match?(program)
click to toggle source
# File lib/aruba/platforms/windows_which.rb, line 22 def self.match?(program) Aruba.platform.absolute_path?(program) || Aruba.platform.relative_command?(program) end
Public Instance Methods
call(program, _path)
click to toggle source
# File lib/aruba/platforms/windows_which.rb, line 26 def call(program, _path) # Expand `#path_exts` found = Dir[program].first return File.expand_path(found) if found && Aruba.platform.executable?(found) nil end