class Aruba::Platforms::UnixWhich::AbsoluteOrRelativePathWhich
Find path for absolute or relative command
Public Class Methods
match?(program)
click to toggle source
# File lib/aruba/platforms/unix_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/unix_which.rb, line 26 def call(program, path) return File.expand_path(program) if Aruba.platform.executable?(program) nil end