Skip to content

Commit

Permalink
Adding the concept of a Flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed May 24, 2011
1 parent bc8e051 commit fd96e5e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
8 changes: 8 additions & 0 deletions cloudbio/edition/__init__.py
@@ -1,3 +1,11 @@
"""An Edition reflects a base install, the default being BioLinux.
Editions are shared between multiple projects. To specialize an edition, create
a Flavor instead.
Other editions can be found in this directory
"""

class Edition:
"""Base class. Every edition derives from this
"""
Expand Down
16 changes: 16 additions & 0 deletions cloudbio/flavor/__init__.py
@@ -0,0 +1,16 @@
"""A Flavor reflects a specialization of a base install, the default being BioLinux.
If you want to create a new specialization (say for your own server), the
recommended procedure is to choose an existing base install (Edition) and write
a Flavor. When your Flavor is of interest to other users, it may be a good idea
to commit it to the main project.
Other flavors can be found in this directory.
"""

class Flavor:
"""Base class. Every flavor derives from this
"""
def __init__(self, env):
self.name = "BioLinux base Flavor"
self.env = env
3 changes: 2 additions & 1 deletion fabfile.py
Expand Up @@ -8,7 +8,8 @@
fab -H hostname -i private_key_file install_biolinux
which will call into the 'install_biolinux' method below.
which will call into the 'install_biolinux' method below. See the README for
more examples.
Requires:
Fabric http://docs.fabfile.org
Expand Down

0 comments on commit fd96e5e

Please sign in to comment.