lib/runbox/master.ex
defmodule Runbox.Master do
@moduledoc """
Utilities for communicating with master node from slave node
"""
@doc """
Calls a function on the master.
Calls MFA on the `master`. See `:erpc.call/4` for details.
"""
@spec call(node(), module(), atom(), list()) :: term()
def call(master, m, f, a) do
:erpc.call(master, m, f, a)
end
end