blob: 20bd9235ffccc31f03443c8d3455db99efc8ae04 [file] [log] [blame]
mbligh321b1f52008-04-09 16:23:43 +00001"""This class defines the Remote host class, mixing in the SiteHost class
2if it is available."""
3
4# site_host.py may be non-existant or empty, make sure that an appropriate
5# SiteHost class is created nevertheless
6try:
7 from site_host import SiteHost
8except ImportError:
9 class SiteHost(base_classes.Host):
10 def __init__(self):
11 super(SiteHost, self).__init__()
12
13
14class RemoteHost(SiteHost):
15 """This class represents a remote machine on which you can run
16 programs.
17
18 It may be accessed through a network, a serial line, ...
19 It is not the machine autoserv is running on.
20
21 Implementation details:
22 This is an abstract class, leaf subclasses must implement the methods
23 listed here and in parent classes which have no implementation. They
24 may reimplement methods which already have an implementation. You
25 must not instantiate this class but should instantiate one of those
26 leaf subclasses."""
27
28 hostname= None
29
30 def __init__(self):
31 super(RemoteHost, self).__init__()