mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 1 | #!/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 | |
| 7 | Implementation details: |
| 8 | You should 'import hosts' instead of importing every available host module. |
| 9 | """ |
| 10 | |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 11 | |
| 12 | # host abstract classes |
| 13 | from base_classes import Host |
jadmanski | 1c5e3a1 | 2008-08-15 23:08:20 +0000 | [diff] [blame^] | 14 | from remote import RemoteHost |
| 15 | from site_host import SiteHost |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 16 | |
| 17 | # host implementation classes |
| 18 | from ssh_host import SSHHost |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 19 | from guest import Guest |
| 20 | from kvm_guest import KVMGuest |
| 21 | |
| 22 | # bootloader classes |
| 23 | from bootloader import Bootloader |
jadmanski | 1c5e3a1 | 2008-08-15 23:08:20 +0000 | [diff] [blame^] | 24 | |
| 25 | |
| 26 | # generic host factory |
| 27 | def create_host(hostname, **args): |
| 28 | return SSHHost(hostname, **args) |