• Home
  • Raw
  • Download

Lines Matching +full:write +full:- +full:host

2 # Use of this source code is governed by a BSD-style license that can be
8 can readily be done by `ArgumentParser.parse_args()`. The post-parsing
41 _BUILD_URI_FORMAT = 'gs://chromeos-image-archive/%s-release/%s'
50 # _BUILD_PATTERNS describe the recognized syntaxes for user-supplied
54 # For user-supplied build versions, the following forms are supported:
55 # #### - Indicates a canary; equivalent to ####.0.0.
56 # ####.#.# - A full build version without the leading R##- prefix.
57 # R##-###.#.# - Canonical form of a build version.
60 (re.compile(r'^R\d+-\d+\.\d+\.\d+$'), None),
61 (re.compile(r'^\d+\.\d+\.\d+$'), 'LATEST-%s'),
62 (re.compile(r'^\d+$'), 'LATEST-%s.0.0'),
72 re.compile(r'chromeos\d+-row\d+-rack\d+-host\d+')
81 # Namedtuple to store host info for processing when creating host in the afe.
90 files (e.g. "LATEST-7356.0.0"), or it could refer to a build
91 artifact (e.g. "R46-7356.0.0/image.zip").
115 """Convert a user-supplied build version to canonical form.
117 Canonical form looks like R##-####.#.#, e.g. R46-7356.0.0.
118 Acceptable user-supplied forms are describe under
166 "LATEST-master" file in its release builder's directory.
181 if _build_path_exists(board, 'LATEST-master'):
184 sys.stderr.write('Board %s doesn\'t exist.\n' % board)
198 build may be in a user-specified (non-canonical)
206 sys.stderr.write(
215 This is a sanity check meant to guarantee that host names follow
223 @param hostname The host name to be checked.
229 sys.stderr.write(
239 - the file exists.
240 - the file is non-empty.
252 Check that all command-line argument constraints are satisfied.
266 sys.stderr.write(
272 sys.stderr.write(
273 'Specified hostname file must exist and be non-empty.\n')
277 sys.stderr.write(
292 @param input File-like object from which to read the line.
297 sys.stderr.write(full_prompt)
306 line is blank and `default_board` is a non-empty string, returns
312 @param input File-like object from which to read the
326 sys.stderr.write('Checking for valid board.\n')
340 @param input File-like object from which to read the build.
350 sys.stderr.write('Checking for valid build.\n')
360 line is blank and `default_model` is a non-empty string, returns
366 @param input File-like object from which to read the
382 sys.stderr.write("It's your responsiblity to ensure validity of "
390 """Read a list of host names from user input.
392 Prompt the user to supply a list of host names. Any number of
397 Only valid host names are accepted. Invalid host names are
400 @param input File-like object from which to read the names.
401 @return Returns a list of validated host names.
406 sys.stderr.write('enter hosts (blank line to end):\n')
415 sys.stderr.write('Must provide at least one hostname.\n')
430 @param input File-like object from which to read user
455 dict of host attributes for the host.
484 return '{time}-{board}'.format(time=timestamp, board=arguments.board)