-
-
Save sarasfox/6820917 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Elixir functionality | |
''' | |
# Import salt libs | |
import salt.utils | |
def install_elixir(): | |
''' | |
Installs elixir from source | |
CLI Example:: | |
salt '*' redhost.install_elixir | |
''' | |
cmds = ('git clone https://github.com/elixir-lang/elixir.git;' | |
'mkdir ~/elixir;' | |
'make test;') | |
return __salt__['cmd.run'](cmds, | |
cwd='/opt', | |
shell='/bin/bash') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment