Shell Out With Elixir
Today I wrote a staging and production deploy script for Tilex, learning about System.cmd/3
along the way. The first argument to this function is the command, the second are arguments, and the third are options.
Here's an example implementation from our script that deletes a Git tag and pushes that updated reference to origin:
System.cmd("git", ["tag", "-d", "staging"])
System.cmd("git", ["push", "origin", ":refs/tags/staging"])
Tweet