lib/cliver/which/posix.rb in cliver-0.1.2 vs lib/cliver/which/posix.rb in cliver-0.1.3
- old
+ new
@@ -4,9 +4,10 @@
module Cliver
module Which
# Posix implementation of Which
# Required and mixed into Cliver::Which in posix environments
module Posix
+ # Posix adapter to `which`
# @param executable [String]
# @return [nil,String] - path to found executable
def which(executable)
which = `which #{Shellwords.escape executable} 2>&1`
executable_path = which.chomp