Class: Aruba::Platforms::WindowsWhich::AbsoluteOrRelativePathWhich
- Inherits:
-
Object
- Object
- Aruba::Platforms::WindowsWhich::AbsoluteOrRelativePathWhich
- Defined in:
- lib/aruba/platforms/windows_which.rb
Overview
Find path for absolute or relative command
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
permalink #call(program, _path) ⇒ Object
[View source]
26 27 28 29 30 31 32 33 |
# File 'lib/aruba/platforms/windows_which.rb', line 26 def call(program, _path) # Expand `#path_exts` found = Dir[program].first return File.(found) if found && Aruba.platform.executable?(found) nil end |