Add colorization and logo

This commit is contained in:
Roberto Rosario
2012-06-01 03:20:26 -04:00
parent 66e3e4d7b5
commit 60a7cee93b
4 changed files with 33 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
from fabric.api import env, task
from fabric.colors import green
from ..literals import DB_MYSQL
import mysql
@@ -9,6 +11,7 @@ def create_database():
"""
Create the Mayan EDMS database
"""
print(green('Creating Mayan EDMS database', bold=True))
if env.database_manager == DB_MYSQL:
mysql.create_database()
@@ -19,6 +22,7 @@ def drop_database():
"""
Drop Mayan EDMS's database
"""
print(green('Droping Mayan EDMS database', bold=True))
if env.database_manager == DB_MYSQL:
mysql.drop_database()