blob: 9f5e9550841c98d8c18d2c3f2156693a9392fa52 [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:
mbligh12e2b212008-05-06 20:49:18 +00009 import base_classes
mbligh321b1f52008-04-09 16:23:43 +000010 class SiteHost(base_classes.Host):
11 def __init__(self):
12 super(SiteHost, self).__init__()
13
14
15class RemoteHost(SiteHost):
16 """This class represents a remote machine on which you can run
17 programs.
18
19 It may be accessed through a network, a serial line, ...
20 It is not the machine autoserv is running on.
21
22 Implementation details:
23 This is an abstract class, leaf subclasses must implement the methods
24 listed here and in parent classes which have no implementation. They
25 may reimplement methods which already have an implementation. You
26 must not instantiate this class but should instantiate one of those
27 leaf subclasses."""
28
29 hostname= None
30
31 def __init__(self):
32 super(RemoteHost, self).__init__()