Created
July 14, 2015 19:51
-
-
Save sarasfox/1f6a130f09223b8a53ae to your computer and use it in GitHub Desktop.
arangodb.py
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
# -*- coding: utf-8 -*- | |
''' | |
Module for managing Arangodb and Foxx app's | |
''' | |
from __future__ import absolute_import | |
# Import python libs | |
import logging | |
# Import salt libs | |
import salt.utils | |
log = logging.getLogger(___name___) | |
def add_app_store(app, mount): | |
''' | |
Install a Foxx app form the Foxx app store | |
''' | |
cmd = 'foxx-manger install ' + app + ' /' + mount | |
out = ___salt___['cmd.run'](cmd) | |
return out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
name this file gg.py in a _modules/ folder, and from a roots/my_app.sls, you would have a state that calls this module function: