Method: Cdo#hasCdo

Defined in:
lib/cdo.rb

#hasCdo(path = @cdo) ⇒ Object



303
304
305
306
307
308
# File 'lib/cdo.rb', line 303

def hasCdo(path=@cdo)
  executable = system("#{path} -V >/dev/null 2>&1")
  fullpath   = File.exists?(path) and File.executable?(path)

  return (executable or fullpath)
end