View Source Hemdal.Host.Local (Hemdal v1.0.0)
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.
Link to this section Summary
Types
Because of an error in Construct, we need to provide the type
t()
for each default value if that's a module or an atom different
from nil
, true
, false
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.
Link to this section Types
@type t() :: module()
Because of an error in Construct, we need to provide the type
t()
for each default value if that's a module or an atom different
from nil
, true
, false
:
https://github.com/ExpressApp/construct/issues/38
Remove this type when the issue is closed and the code is in use by this library.
Link to this section 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.