Skip to content

Commit

Permalink
add missing files from last commit
Browse files Browse the repository at this point in the history
Signed-off-by: Martin J. Bligh <[email protected]>
  • Loading branch information
Martin J. Bligh committed Apr 9, 2008
1 parent 232ec23 commit 7e5f76f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Empty file added server/__init__.py
Empty file.
31 changes: 31 additions & 0 deletions server/hosts/remote.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
"""This class defines the Remote host class, mixing in the SiteHost class
if it is available."""

# site_host.py may be non-existant or empty, make sure that an appropriate
# SiteHost class is created nevertheless
try:
from site_host import SiteHost
except ImportError:
class SiteHost(base_classes.Host):
def __init__(self):
super(SiteHost, self).__init__()


class RemoteHost(SiteHost):
"""This class represents a remote machine on which you can run
programs.
It may be accessed through a network, a serial line, ...
It is not the machine autoserv is running on.
Implementation details:
This is an abstract class, leaf subclasses must implement the methods
listed here and in parent classes which have no implementation. They
may reimplement methods which already have an implementation. You
must not instantiate this class but should instantiate one of those
leaf subclasses."""

hostname= None

def __init__(self):
super(RemoteHost, self).__init__()

0 comments on commit 7e5f76f

Please sign in to comment.