Display the supported configurations

This commit is contained in:
Roberto Rosario
2012-06-02 01:55:01 -04:00
parent 50032767cb
commit cf88bf759e
4 changed files with 19 additions and 11 deletions

Binary file not shown.

View File

@@ -5,11 +5,10 @@ import databases as database
import webservers as webserver
import platforms as platform
import django
from conf import setup_environment
from conf import setup_environment, print_supported_configs
setup_environment()
print(white('\n\n ######## ', bold=True))
print(white(' ######## ', bold=True))
print(white(' ### ### ', bold=True))
@@ -25,6 +24,8 @@ print(white('############# #############', bold=True))
print(white('\nMayan EDMS Fabric installation file\n\n', bold=True))
print_supported_configs()
@task(default=True)
def install():

View File

@@ -44,3 +44,10 @@ def setup_environment():
env['webserver_name'] = WEB_CHOICES[env.webserver]
env['django_database_driver'] = DJANGO_DB_DRIVERS[env.database_manager]
def print_supported_configs():
print('Supported operating systems (os=): %s' % dict(OS_CHOICES).keys())
print('Supported database managers (database_manager=): %s' % dict(DB_CHOICES).keys())
print('Supported webservers (webserver=): %s' % dict(WEB_CHOICES).keys())
print('\n')

View File

@@ -3,15 +3,15 @@ OS_REDHAT = 'redhat'
OS_CENTOS = 'centos'
OS_FEDORA = 'fedora'
OS_WINDOWS = 'windows'
OS_FREEBSD = 'freebds',
OS_FREEBSD = 'freebds'
OS_CHOICES = {
OS_UBUNTU: 'Ubuntu',
OS_REDHAT: 'RedHat',
OS_CENTOS: 'CentOS',
OS_FEDORA: 'Fedora',
OS_WINDOWS: 'MS Windows',
OS_FREEBSD: 'FreeBSD',
#OS_REDHAT: 'RedHat',
#OS_CENTOS: 'CentOS',
#OS_WINDOWS: 'MS Windows',
#OS_FREEBSD: 'FreeBSD',
}
DEFAULT_INSTALL_PATH = {
@@ -36,9 +36,9 @@ DB_ORACLE = 'oracle'
DB_CHOICES = {
DB_MYSQL: 'MySQL',
DB_PGSQL: 'PostgreSQL',
DB_SQLITE: 'SQLite',
DB_ORACLE: 'ORACLE'
#DB_PGSQL: 'PostgreSQL',
#DB_SQLITE: 'SQLite',
#DB_ORACLE: 'ORACLE'
}
DJANGO_DB_DRIVERS = {
@@ -53,7 +53,7 @@ WEB_NGINX = 'nginx'
WEB_CHOICES = {
WEB_APACHE: 'Apache',
WEB_NGINX: 'Nginx',
#WEB_NGINX: 'Nginx',
}
DEFAULT_OS = OS_UBUNTU