blob: 0a3a255edcece34b23c2028e72b3f35144a1f336 [file] [log] [blame]
mblighdcd57a82007-07-11 23:06:47 +00001#!/usr/bin/python
2#
3# Copyright 2007 Google Inc. Released under the GPL v2
4
5"""This is a convenience module to import all available types of hosts.
6
7Implementation details:
8You should 'import hosts' instead of importing every available host module.
9"""
10
mblighdcd57a82007-07-11 23:06:47 +000011
12# host abstract classes
13from base_classes import Host
jadmanski1c5e3a12008-08-15 23:08:20 +000014from remote import RemoteHost
15from site_host import SiteHost
mblighdcd57a82007-07-11 23:06:47 +000016
17# host implementation classes
18from ssh_host import SSHHost
mblighdcd57a82007-07-11 23:06:47 +000019from guest import Guest
20from kvm_guest import KVMGuest
21
22# bootloader classes
23from bootloader import Bootloader
jadmanski1c5e3a12008-08-15 23:08:20 +000024
25
26# generic host factory
27def create_host(hostname, **args):
28 return SSHHost(hostname, **args)