atelier.projects¶
(This module’s source code is available here.)
A minimalistic command-line project management.
The config.py file¶
- ~/.atelier/config.py¶
- ~/_atelier/config.py¶
- /etc/atelier/config.py¶
If you manage more than one project, then you declare them in a configuration file, usually named ~/.atelier/config.py, which contains something like:
add_project('/home/john/myprojects/p1')
add_project('/home/john/myprojects/second_project', 'p2')
Functions
| add_project(root_dir[, nickname]) | To be called from your config.py file. |
| get_project_info(root_dir) | Find the project info for the given directory. |
| get_setup_info(root_dir) | |
| import_module(name[, package]) | Import a module. |
| load_projects() |
Classes
| Path | |
| Project(i, root_dir[, nickname]) | Describes a project. |
- class atelier.projects.Project(i, root_dir, nickname=None)¶
Describes a project.
- load_fabfile()¶
Load the fabfile.py of this project.
- atelier.projects.add_project(root_dir, nickname=None)¶
To be called from your config.py file.
root_dir is the name of a directory which is expected to contain a fabfile.py.
If no nickname is specified, the nickname will be the leaf name of that directory.
Returns a Project instance describing the project.
- atelier.projects.get_project_info(root_dir)¶
Find the project info for the given directory.