Medic.Check.command_succeeds-question-mark
You're seeing just the function
command_succeeds-question-mark
, go back to Medic.Check module for more information.
Specs
command_succeeds?(binary(), [binary()], [{:remedy, binary()}]) :: :ok | {:error, binary(), binary()}
Usable within a check. If the command exits with a 0 status code, then :ok
, is returned.
If the command returns a non-zero status code, then {:error, output, remedy}
is returned,
where output is any text generated by the command.