Hemdal.Host.Local (Hemdal v1.0.4)

View Source

Implement the host access for the local running commands. It is intended to run commands locally where the system is.

It's not recommended when we are going to put the running system inside of a container because it's very limited.

Summary

Functions

Remove the temporal file.

Run locally a command. It's using System.shell/2 for achieving that.

Write a file locally, the file is intended to be located in a temporal location, if the file exists previously it will fail ensuring it's not overloading existent files.

Functions

delete(opts, tmp_file)

Remove the temporal file.

exec(opts, command)

Run locally a command. It's using System.shell/2 for achieving that.

write_file(opts, tmp_file, content)

Write a file locally, the file is intended to be located in a temporal location, if the file exists previously it will fail ensuring it's not overloading existent files.