net/tool/trac

Trac Support

Dependency Graph

net/tool/trac: Library Dependencies

View the full-size SVG (svg) or PDF (pdf) image or graphviz source (dot)

View color source code (raw) for this file

View reStructuredText (rst) source code for this page

Settings

Native dependencies

FIXME: need wsgi deps

$trac_python_packages[]

List of Python packages to run Trac

Admin

Site

create and change to site directory

create/update virtual machine

Project Groups

for_each_trac_group()

Calls a function ($@) with each project group in the current Trac site.

Projects

for_each_trac_project()

Calls a function ($@) with each project in the given project group ($1).

trac_project_dir()

Prints name of project directory for given host ($1) and project name ($2).

trac_project_run()

Run a command in the given project directory.

$1 - Project group

$2 - Project name

trac_project_exists()

Checks whether a project eixsts

$1 - Project group

$2 - Project name

trac_project_config_file()

Prints project configuration file name

$1 - Project group

$2 - Project name

trac_project_log_file()

Prints project log file name

$1 - Project group

$2 - Project name

$3 - Log name (default: trac.log)

Permissions

trac_project_perm_add()

Grants permissions to a user ($3) for the given group ($1) project ($2).

Repositories

trac_repos_dir()

Prints path to a Trac-hosted repository.

$1 - Group name

$2 - Project name

$3 - Repository name

trac_project_repos()

Prints list of repositories

for_each_trac_repo()

Calls a function ($@) with each repository in the given group ($1) project ($2).

trac_project_run()

Run a command in the given project directory.

$1 - Group name

$2 - Project name

$3 - Repository name

$@ - Command to run

trac_repo_exists()

Returns success if a repository exists for a project

$1 - Group name

$2 - Project name

$3 - Repository name

trac_repo_clone()

Clones a repository from a URL into a project

$1 - Group name

$2 - Project name

$3 - Repository name

$4 - Repository URL

trac_repo_update()

Updates a repository for a project

$1 - Group name

$2 - Project name

$3 - Repository name

trac_repo_delete()

Deletes a repository from a project

$1 - Group name

$2 - Project name

$3 - Repository name

trac_repo_sync()

Synchronizes the specified project repository

$1 - Group name

$2 - Project name

$3 - Repository name

trac_repo_hook_init()

Creates a Git repository hook file, taking input from stdin.

$1 - Group name

$2 - Project name

$3 - Repository name

$4 - Hook name

trac_repo_post_commit()

Runs the post-commit hook to update Trac. input from stdin.

$1 - Group name

$2 - Project name

$3 - Repository name

$4 - Revision

trac_repo_post_receive()

Runs the post-receive hook to update Trac. input from stdin.

$1 - Group name

$2 - Project name

$3 - Repository name

Cron support

trac_cron_run()

Runs all periodic Trac tasks

Command Support

trac_dispatch()

Dispatches tool command after activating virtual environment for the site.

$@ - Command and arguments to dispatch


View the Developer Guide Index

View the Reference Manual Index


Generated on Fri Jul 28 14:38:17 PDT 2017 by mcsh d14 v0.23.0.