Module: Ukiryu::ExecutableLocator::PathDiscovery Private

Defined in:
lib/ukiryu/executable_locator.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Manual PATH discovery

Class Method Summary collapse

Class Method Details

.discover(command, context) ⇒ Hash?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Discover executable via PATH search

Parameters:

  • command (String)

    the command to locate

  • context (DiscoveryContext)

    discovery environment

Returns:

  • (Hash, nil)

    discovery result or nil



191
192
193
194
# File 'lib/ukiryu/executable_locator.rb', line 191

def discover(command, context)
  path = PathScanner.find(command)
  DiscoveryResult.build(path, :path, context) if path
end