kolla-kubernetes/kolla_kubernetes
David C Wang 59ca222550 Consolidating path resolution and searching for program files
- This commit is refactoring only, and attempts to avoid modifying
  functionality. Not a blueprint nor bug fix.
- The goal is to be more clear and explicit when searching for program
  files.
- The current kolla-cli client searches across many paths to find
  services, bootstrap, and configuation files.  The changes in this
  git commit refactor this functionality into a single objectified
  PathFinder class.
- It tries to make consistent and clear how it searches various
  locations to find service and bootstrap files.
- The current code when locating service and bootstrap files locks
  onto the first path that exists.  This code does not change that.
- The current code when locating config files locks onto the first
  path where the file exists.  This code does not change that.
- Made kolla-kubernetes search paths work with editable development
  installs.
- Added a bootstrap-dir in addition to services-dir as a command line
  override.  Hoping to remove both in the future if people are okay
  with it.
- Refactored kolla_kubernetes/common/file_utils.py into pathfinder.py,
  attempting to de-dup code paths.
- Added a new KollaFileNotFoundException.
- I'm happy to modify the search order and remove search paths in
  subsequent pull requests.  The less variations we must support the
  better.

Change-Id: I95e2423b0f29e8b3908b1a22ee68c5decd6d9fee
2016-06-21 21:12:19 +00:00
..
cli Remove code redundancy within service.py 2016-06-16 20:00:18 +00:00
cmd Consolidating path resolution and searching for program files 2016-06-21 21:12:19 +00:00
common Consolidating path resolution and searching for program files 2016-06-21 21:12:19 +00:00
tests Consolidating path resolution and searching for program files 2016-06-21 21:12:19 +00:00
__init__.py Update for successful pep8 2016-05-05 22:20:22 +05:30
config.py Implement a command line to start/stop keystone services 2016-05-09 16:11:34 -04:00
exception.py Consolidating path resolution and searching for program files 2016-06-21 21:12:19 +00:00
service.py Consolidating path resolution and searching for program files 2016-06-21 21:12:19 +00:00
service_definition.py Consolidating path resolution and searching for program files 2016-06-21 21:12:19 +00:00
version.py Support for release notes 2016-05-05 14:22:01 -04:00