# File lib/cliver/detector.rb, line 42
    def detect_version(executable_path)
      capture = ShellCapture.new(version_command(executable_path))
      unless capture.command_found
        raise Cliver::Dependency::NotFound.new(
            "Could not find an executable at given path '#{executable_path}'." +
            "If this path was not specified explicitly, it is probably a " +
            "bug in [Cliver](https://github.com/yaauie/cliver/issues)."
          )
      end
      capture.stdout[version_pattern] || capture.stderr[version_pattern]
    end