blob: 84bb4001ce45519d46314d89deece84b3428f912 [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
jadmanski0afbb632008-06-06 21:10:57 +00004# site_host.py may be non-existant or empty, make sure that an appropriate
mbligh321b1f52008-04-09 16:23:43 +00005# SiteHost class is created nevertheless
6try:
jadmanski0afbb632008-06-06 21:10:57 +00007 from site_host import SiteHost
mbligh321b1f52008-04-09 16:23:43 +00008except ImportError:
jadmanski0afbb632008-06-06 21:10:57 +00009 import base_classes
10 class SiteHost(base_classes.Host):
11 def __init__(self):
12 super(SiteHost, self).__init__()
mbligh321b1f52008-04-09 16:23:43 +000013
14
15class RemoteHost(SiteHost):
jadmanski0afbb632008-06-06 21:10:57 +000016 """This class represents a remote machine on which you can run
17 programs.
mbligh321b1f52008-04-09 16:23:43 +000018
jadmanski0afbb632008-06-06 21:10:57 +000019 It may be accessed through a network, a serial line, ...
20 It is not the machine autoserv is running on.
mbligh321b1f52008-04-09 16:23:43 +000021
jadmanski0afbb632008-06-06 21:10:57 +000022 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."""
mbligh321b1f52008-04-09 16:23:43 +000028
jadmanski0afbb632008-06-06 21:10:57 +000029 hostname= None
mbligh321b1f52008-04-09 16:23:43 +000030
jadmanski0afbb632008-06-06 21:10:57 +000031 def __init__(self):
32 super(RemoteHost, self).__init__()