~zyga/lava-core/workspace

Viewing all changes in revision 15.

  • Committer: Zygmunt Krynicki
  • Date: 2012-05-28 06:26:30 UTC
  • Revision ID: zygmunt.krynicki@linaro.org-20120528062630-y87gao53i805di4v
Add workspace module

Workspaces are a new concept in lava. They allow to bind shell commands to lava
configurataion. In practical terms they behave like git and bzr branches where
the tool works 'against' the locally defined configuration. This configuration
is kept in .lava directory, it is also searched for upwards toward the root
directory.

The workspace class provides a few utility methods, among them to find and
create a worskpace and to access the environment from within a workspace. The
environment then allows various parts of lava to see all of the configuration
(which is in some way similar to the concept of a registry)

There are some basic unit tests for several methods as well.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: