1 from autotest_lib
.server
import utils
4 class InstallableObject(object):
6 This class represents a software package that can be installed on
9 Implementation details:
10 This is an abstract class, leaf subclasses must implement the methods
11 listed here. You must not instantiate this class but should
12 instantiate one of those leaf subclasses.
18 super(InstallableObject
, self
).__init
__()
21 def get(self
, location
):
23 Get the source material required to install the object.
25 Through the utils.get() function, the argument passed will be
26 saved in a temporary location on the LocalHost. That location
27 is saved in the source_material attribute.
30 location: the path to the source material. This path
31 may be of any type that the utils.get()
34 self
.source_material
= utils
.get(location
)
37 def install(self
, host
):