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