2011-11-12 18:20:07 +00:00
|
|
|
"""
|
|
|
|
This module contains the choices definition for settings required
|
|
|
|
for the build master to run.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from choices import Choices
|
|
|
|
|
|
|
|
from loader import load_settings
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Define the Settings
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
c = Choices()
|
|
|
|
c.define('title', type=str, help="Buildmaster title")
|
|
|
|
c.define('title_url', type=str, help="URL for title page")
|
|
|
|
c.define('buildbot_url', type=str, help="URL to the buildbot master.")
|
|
|
|
c.define('slaves', type=str, help="A list of the slave machines. The format should be name:password,name:password,...")
|
|
|
|
c.define('web_port', type=int, help="Port to listen on for web service.")
|
2011-11-13 00:09:30 +00:00
|
|
|
c.define('http_users', type=str, help="username:password list of users.")
|
2011-11-12 18:20:07 +00:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
# Load the Settings
|
|
|
|
#----------------------------------------------------------------------
|
|
|
|
options = load_settings(c, "master")
|