diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-16 17:09:38 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-16 17:09:38 +0100 |
commit | cd52c82d7e97c72a421f0973941337dd7868b06a (patch) | |
tree | aede58973da2109fe4bd1fa8a49e6d9a6cde2b75 /morphlib/artifact.py | |
parent | 9a0976b32c8362de0ad70283f5d4ab3675706564 (diff) | |
download | morph-cd52c82d7e97c72a421f0973941337dd7868b06a.tar.gz |
Add Artifact documentaiton, fix morphlib module imports.
Diffstat (limited to 'morphlib/artifact.py')
-rw-r--r-- | morphlib/artifact.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/morphlib/artifact.py b/morphlib/artifact.py index 830ee1ac..e335b4cb 100644 --- a/morphlib/artifact.py +++ b/morphlib/artifact.py @@ -16,6 +16,21 @@ class Artifact(object): + '''Represent a build result generated from a source. + + Has the following properties: + + * ``source`` -- the source from which the artifact is built + * ``name`` -- the name of the artifact + * ``cache_key`` -- a cache key to uniquely identify the artifact + * ``dependencies`` -- list of Artifacts that need to be built beforehand + * ``dependents`` -- list of Artifacts that need this Artifact to be built + + The ``dependencies`` and ``dependents`` lists MUST be modified by + the ``add_dependencies`` and ``add_dependent`` methods only. + + ''' + def __init__(self, source, name, cache_key): self.source = source self.name = name |