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

Side by Side Diff: scripts/slave/recipe_modules/service_account/config.py

Issue 1954753003: Service account module (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Sorting deps. Created 4 years, 7 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
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from recipe_engine.config import config_item_context, ConfigGroup
6 from recipe_engine.config import Single
7
8
9 def BaseConfig():
10 return ConfigGroup(
11 accounts_path = Single(str, required=True),
12 authutil_path = Single(str, required=True))
13
14
15 config_ctx = config_item_context(BaseConfig)
16
17
18 @config_ctx()
19 def service_account_windows(c):
20 c.accounts_path = 'C:\\creds\\service_accounts'
21 c.authutil_path = 'C:\\infra-tools\\authutil.exe'
22
23
24 @config_ctx()
25 def service_account_default(c):
26 c.accounts_path = '/creds/service_accounts'
27 c.authutil_path = '/opt/infra-tools/authutil'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698