Sha256: e23ae3c849f6decd991b1e93a9610f1d358880ee8ac8487724670c33a4062257

Contents?: true

Size: 703 Bytes

Versions: 45

Compression:

Stored size: 703 Bytes

Contents

"""
This module contains the configuration loader for a specific
choices instance. This is used internally to load the settings.
"""

import os

from choices import ConfigFileLoader

def load_settings(choices, type):
    """
    This will load the proper settings for the given choices
    instance.

    :Parameters:
      - `choices`: The choices instance to load.
      - `type`: The type of configuration, either "master" or
        "slave"
    """
    if "BUILDBOT_CONFIG" not in os.environ:
        raise ValueError, "BUILDBOT_CONFIG must be set to point to where the configuration file is."

    choices.add_loader(ConfigFileLoader(os.environ["BUILDBOT_CONFIG"], type))
    return choices.load()

Version data entries

45 entries across 45 versions & 6 rubygems

Version Path
bmhatfield-vagrant-1.0.10 test/buildbot/buildbot_config/config/loader.py
bmhatfield-vagrant-1.0.9 test/buildbot/buildbot_config/config/loader.py
bmhatfield-vagrant-1.0.8 test/buildbot/buildbot_config/config/loader.py
bmhatfield-vagrant-1.0.7 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.7 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.6 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.5 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.4 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.3 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.2 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.1 test/buildbot/buildbot_config/config/loader.py
vagrantup-1.0.0 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.99.2 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.99.1 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.7 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.6 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.5 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.4 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.3 test/buildbot/buildbot_config/config/loader.py
vagrantup-0.9.2 test/buildbot/buildbot_config/config/loader.py