~milo/lava-dispatcher/tar-repo

  • Committer: Antonio Terceiro
  • Date: 2013-06-13 14:34:13 UTC
  • mfrom: (623.2.3 expose-config-dirs)
  • Revision ID: antonio.terceiro@linaro.org-20130613143413-9lhejzodqp4jisjd
Refactor handling of configuration directories

  The configuration search path is now unconditionally set to:

  $HOME/.config/lava-dispatcher
  ${VIRTUAL_ENV}/etc/lava-dispatcher
  ${lava_dispatcher_root}/lava_dispatcher/default-config/lava-dispatcher

  If the VIRTUAL_ENV environment variable is not set, then it will read
  configuration from /etc/lava-dispatcher (as expected).

  - The search path is now exposed to client code by the
    lava_dispatcher.config.search_path() function

  - The path for *writing* configuration files is exported in the write_path()
    function.

  - Each individual directory in the search path can be accessed by the variables
    user_config_path, system_config_path and default_config_path.

  - Switched from /etc/xdg/lava-dispatcher to /etc/lava-dispatcher. Because of
    the previous state of the code, where a specific config_dir was always passed
    in and there was no way of overriding it, /etc/xdg/lava-dispatcher was never
    actually used by anybody, so the risk of this change is zero.

  - Removed passing around of configuration directory.

  - --config-dir switch in command line tools was kept and has the same behaviour
    as before. If a custom config dir is passed, both user and system-wide
    directories are ignored, and only the custom directory and the hardcoded
    defaults are used.
Filename Latest Rev Last Changed Committer Comment Size
..
doc 9.2.2 13 years ago Loïc Minier Add sample JSON file from the spec. Diff
lava 260.1.3 12 years ago Zygmunt Krynicki Convert lava-dispatch to lava-tool Diff
lava_dispatcher 67.1.2 12 years ago Michael-Doyle Hudson move lava/dispatcher to lava_dispatcher Diff
lava_test_shell 395.1.1 11 years ago Andy Doan include new lava-test-shell scripts These are the Diff
.bzrignore 83.6.2 12 years ago Le Chi Thu le.chi.thu@linaro.org Merged trunk 108 bytes Diff Download File
.testr.conf 67.1.3 12 years ago Michael-Doyle Hudson update import statements 107 bytes Diff Download File
COPYING 66 12 years ago Paul Larson Release 2011.06 17.5 KB Diff Download File
File lava-dispatch 319.1.2 11 years ago Michael Hudson-Doyle take lava-dispatch away and replace it with a shel 36 bytes Diff Download File
MANIFEST.in 414 11 years ago Andy Doan release-0.19.1 Two setup.py sdist issues: 1) I f 97 bytes Diff Download File
README 248 12 years ago Michael Hudson-Doyle fix rest in README 741 bytes Diff Download File
requirements.txt 154.1.5 12 years ago Michael Hudson-Doyle add first version of schema, way to check job agai 87 bytes Diff Download File
setup.cfg 220 12 years ago Zygmunt Krynicki Add setup.cfg that makes releases signed 19 bytes Diff Download File
File setup.py 522 11 years ago Andy Doan release-0.29.1 revno 494.1.1 deleted two files bu 2 KB Diff Download File