VintageNet.Interface.CommandRunner (vintage_net v0.11.3) 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, module, function_name, args} - Run a function by MFA
  • {:fun, fun} - Run a function. Using the MFA form is preferred since it's
                easier to verfiy in unit tests.

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

Run one or more commands

Link to this section Functions

Link to this function

create_files(file_contents)

View Source

Specs

Create a list of files

Link to this function

remove_files(file_contents)

View Source

Specs

Remove a list of files

Specs

Run one or more commands

See the module docs for documentation on commands.