Add Fedora support to the fabfile (Tested on Fedora 17)

This commit is contained in:
Roberto Rosario
2012-06-02 01:41:23 -04:00
parent f9e028e134
commit a0193ca78b
9 changed files with 163 additions and 45 deletions

View File

@@ -0,0 +1,20 @@
from fabric.api import run, sudo, cd, env, task, settings
def delete_mayan():
"""
Delete Mayan EDMS files from an Ubuntu system
"""
sudo('rm %s -Rf' % env.virtualenv_path)
def install_mayan():
"""
Install Mayan EDMS on an Ubuntu system
"""
with cd(env.install_path):
sudo('virtualenv --no-site-packages %s' % env.virtualenv_name)
with cd(env.virtualenv_path):
sudo('git clone http://www.github.com/rosarior/mayan %s' % env.repository_name)
sudo('source bin/activate; pip install -r %s/requirements/production.txt' % env.repository_name)