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

Side by Side Diff: mojo/devtools/common/devtoolslib/shell.py

Issue 1433353007: Drop default port number in `http_server.py` and `shell.py`. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 | « mojo/devtools/common/devtoolslib/linux_shell.py ('k') | no next file » | 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 Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 class Shell(object): 6 class Shell(object):
7 """Represents an abstract Mojo shell.""" 7 """Represents an abstract Mojo shell."""
8 8
9 def serve_local_directories(self, mappings, port=0, reuse_servers=False): 9 def serve_local_directories(self, mappings, port, reuse_servers=False):
10 """Serves the content of the local (host) directories, making it available 10 """Serves the content of the local (host) directories, making it available
11 to the shell under the url returned by the function. 11 to the shell under the url returned by the function.
12 12
13 The server will run on a separate thread until the program terminates. The 13 The server will run on a separate thread until the program terminates. The
14 call returns immediately. 14 call returns immediately.
15 15
16 Args: 16 Args:
17 mappings: List of tuples (prefix, local_base_path_list) mapping URLs that 17 mappings: List of tuples (prefix, local_base_path_list) mapping URLs that
18 start with |prefix| to one or more local directories enumerated in 18 start with |prefix| to one or more local directories enumerated in
19 |local_base_path_list|. The prefixes should skip the leading slash. 19 |local_base_path_list|. The prefixes should skip the leading slash.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 terminated 59 terminated
60 60
61 Returns: 61 Returns:
62 A tuple of (return_code, output, did_time_out). |return_code| is the exit 62 A tuple of (return_code, output, did_time_out). |return_code| is the exit
63 code returned by the shell or None if the exit code cannot be retrieved. 63 code returned by the shell or None if the exit code cannot be retrieved.
64 |output| is the stdout mingled with the stderr produced by the shell. 64 |output| is the stdout mingled with the stderr produced by the shell.
65 |did_time_out| is True iff the shell was terminated because it exceeded 65 |did_time_out| is True iff the shell was terminated because it exceeded
66 the |timeout| and False otherwise. 66 the |timeout| and False otherwise.
67 """ 67 """
68 raise NotImplementedError() 68 raise NotImplementedError()
OLDNEW
« no previous file with comments | « mojo/devtools/common/devtoolslib/linux_shell.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698