Skip to content

Instantly share code, notes, and snippets.

@sarasfox
Forked from UtahDave/mult-line cmd.run
Last active December 24, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarasfox/6820917 to your computer and use it in GitHub Desktop.
Save sarasfox/6820917 to your computer and use it in GitHub Desktop.
'''
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