vintage_net v0.7.7 VintageNet.Interface.CommandRunner View Source

The CommandRunner module runs commands specified in RawConfigs

See the RawConfig documentation for where lists of commands are specified. The following commands are supported:

  • {:run, command, args} - Run a system command
  • {:run_ignore_exit, command, args} - Same as :run, but without the exit status check
  • {:fun, fun} - Run an function

CommandRunner also implements RawConfig's file creation and cleanup logic.

Link to this section Summary

Functions

Create a list of files

Remove a list of files

Call a function

Link to this section Functions

Create a list of files

Remove a list of files

Call a function

In general, prefer the module, function_name, args form since it's easier to check in unit tests.

Functions must return :ok or {:error, reason}.