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

Side by Side Diff: server/site_autoserv_parser.py

Issue 651043: Enable chromeos reimage function from autoserv command line. Part I. (Closed)
Patch Set: patch 12 Created 10 years, 10 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 | « server/hosts/site_host.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 __author__ = "raphtee@google.com (Travis Miller)" 1 __author__ = "raphtee@google.com (Travis Miller)"
2 __author__ = "ericli@chromium.com (Eric Li)"
2 3
3 import common 4 import common
4 from autotest_lib.server.autoserv_parser import base_autoserv_parser 5 from autotest_lib.server.autoserv_parser import base_autoserv_parser
5 6
6 7
7 add_usage = """\ 8 add_usage = """\
8 """ 9 """
9 10
10 11
11 class site_autoserv_parser(base_autoserv_parser): 12 class site_autoserv_parser(base_autoserv_parser):
12 def get_usage(self): 13 def get_usage(self):
13 usage = super(site_autoserv_parser, self).get_usage() 14 usage = super(site_autoserv_parser, self).get_usage()
14 return usage+add_usage 15 return usage+add_usage
16
17
18 def setup_options(self):
19 base_autoserv_parser.setup_options(self)
20 self.parser.add_option("--image", action="store", type="string",
21 dest="image",
22 help="Full path of an osimage to install.")
23
24
25 def parse_args(self):
26 base_autoserv_parser.parse_args(self)
27 if self.options.image:
28 self.options.install_before = True
29
OLDNEW
« no previous file with comments | « server/hosts/site_host.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698