Method: EvmClient::IpcClient.default_path

Defined in:
lib/evm_client/ipc_client.rb

.default_path(paths = IPC_PATHS) ⇒ Object



29
30
31
32
# File 'lib/evm_client/ipc_client.rb', line 29

def self.default_path(paths = IPC_PATHS)
  path = paths.find { |path| File.exist?(path) }
  path || raise("Ipc file not found. Please pass in the file path explicitly to IpcClient initializer")
end