diff --git a/aeromancer/db/migrations.py b/aeromancer/db/migrations.py index eb4f755..870b2d6 100644 --- a/aeromancer/db/migrations.py +++ b/aeromancer/db/migrations.py @@ -17,6 +17,8 @@ def run_migrations(): url = connect.get_url() config.set_main_option("sqlalchemy.url", url) command.upgrade(config, 'head') + # NOTE(dhellmann): Load migration settings from the plugins for + # processing special types of files, and run them. if __name__ == '__main__': diff --git a/aeromancer/project.py b/aeromancer/project.py index 4957131..19f7ed0 100644 --- a/aeromancer/project.py +++ b/aeromancer/project.py @@ -103,6 +103,10 @@ def _update_project_files(session, proj_obj): for num, content in enumerate(lines, 1): session.add(Line(file=new_file, number=num, content=content)) + # NOTE(dhellmann): Use stevedore to invoke plugins based on + # fnmatch of filename being read (use the filename, not the + # fullname. + def discover(repo_root): """Discover project-like directories under the repository root"""