Part of canonical.buildd.pottery.generate_translation_templates View In Hierarchy
Method | __init__ | Prepare to generate templates for a branch. |
Method | generate | Do It. Generate templates. |
Method | _setupLogger | Sets up and returns a logger. |
Method | _getBranch | Set self.branch_dir , and check out branch if needed. |
Method | _checkout | Check out a source branch to generate from. |
Method | _makeTarball | Put the given files into a tarball in the working directory. |
Parameters | branch_spec | Either a branch URL or the path of a local branch. URLs are recognized by the occurrence of ':'. In the case of a URL, this will make up a path for the branch and check out the branch to there. |
result_name | The name of the result tarball. Should end in .tar.gz. | |
work_dir | The directory to work in. Must exist. |