Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: appengine/config_service/gitiles_import.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/config_service/cron.yaml ('k') | appengine/config_service/gitiles_import_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Swarming Authors. All rights reserved. 1 # Copyright 2015 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Imports config files stored in Gitiles. 5 """Imports config files stored in Gitiles.
6 6
7 If services_config_location is set in admin.GlobalConfig root entity, 7 If services_config_location is set in admin.GlobalConfig root entity,
8 each directory in the location is imported as services/<directory_name>. 8 each directory in the location is imported as services/<directory_name>.
9 9
10 For each project defined in the project registry with 10 For each project defined in the project registry with
11 config_storage_type == Gitiles, projects/<project_id> config set is imported 11 config_storage_type == Gitiles, projects/<project_id> config set is imported
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 _import_config_set(ref_cs, ref_location) 431 _import_config_set(ref_cs, ref_location)
432 432
433 433
434 def cron_run_import(): # pragma: no cover 434 def cron_run_import(): # pragma: no cover
435 conf = admin.GlobalConfig.fetch() 435 conf = admin.GlobalConfig.fetch()
436 if (conf and conf.services_config_storage_type == GITILES_STORAGE_TYPE and 436 if (conf and conf.services_config_storage_type == GITILES_STORAGE_TYPE and
437 conf.services_config_location): 437 conf.services_config_location):
438 loc = gitiles.Location.parse_resolve(conf.services_config_location) 438 loc = gitiles.Location.parse_resolve(conf.services_config_location)
439 import_services(loc) 439 import_services(loc)
440 import_projects() 440 import_projects()
OLDNEW
« no previous file with comments | « appengine/config_service/cron.yaml ('k') | appengine/config_service/gitiles_import_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698