class Test::Unit::Notify::NotifyCommand

@private

Public Instance Methods

available?() click to toggle source
# File lib/test/unit/notify.rb, line 76
def available?
  paths.any? do |path|
    File.exist?(File.join(path, @command))
  end
end

Private Instance Methods

default_paths() click to toggle source
# File lib/test/unit/notify.rb, line 92
def default_paths
  ["/usr/local/bin", "/usr/bin", "/bin"]
end
paths() click to toggle source
# File lib/test/unit/notify.rb, line 83
def paths
  path_env = ENV["PATH"]
  if path_env.nil?
    default_paths
  else
    path_env.split(File::PATH_SEPARATOR)
  end
end