Home | Trees | Index | Help |
|
---|
Package pyb :: Package tasks |
|
Task module which contains all the core tasks for Pyb.
Copyright (C) 2004 Aetrion LLC
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.Submodules | |
---|---|
Function Summary | |
---|---|
Decompress a bzip2 file. | |
Compress a file using bzip2. | |
Copy files and directories from one location to another. | |
Delete the specified file or directory. | |
Force the build to fail. | |
Decompress a gzip file. | |
Compress a file using gzip. | |
log(taskname,
message)
| |
Sleep for s seconds. | |
Create a tar archive. | |
Untar the specified file. | |
Unzip the specified file into the given directory. | |
Create a zip archive. |
Function Details |
---|
bunzip2(src, destfile=None, destdir=None)Decompress a bzip2 file. Either destfile or destdir must be specified. src: The source gzip file (REQUIRED) destfile: The file to write to destdir: The directory to write to |
bzip2(src='', destfile=None, includeFilters=['.*'], excludeFilters=[])Compress a file using bzip2. src: The source file to gzip (REQUIRED) destfile: The gzip file to write to (REQUIRED) |
copy(src=None, basedir=None, destdir='', includeFilters=['.*'], excludeFilters=['.*CVS\\.*'], debug=False)Copy files and directories from one location to another. Either the src or the basedir parameters must be specified.
|
delete(file=None, dir=None)Delete the specified file or directory. Either the file or the dir must be specified. file: The file path dir: The directory path |
fail(message=None, task=None)Force the build to fail. message: The reason for the failure task: The name of the task |
gunzip(src, destfile=None, destdir=None)Decompress a gzip file. Either destfile or destdir must be specified. src: The source gzip file (REQUIRED) destfile: The file to write to destdir: The directory to write to |
gzip(src=None, destfile=None)Compress a file using gzip. src: The source file to gzip (REQUIRED) destfile: The gzip file to write to (REQUIRED) |
sleep(s)Sleep for s seconds. @param s Number of seconds to sleep |
tar(basedir='', destfile=None, compression='none', includeFilters=['.*'], excludeFilters=[])Create a tar archive. basedir: The base directory (current directory) destfile: The tar file to write to (REQUIRED) compression: 'none', 'gzip' or 'bzip2' ('none') includeFilters: Regular expression Strings to include files (All files) excludeFilters: Regular expression strings to exclude files (empty list) |
untar(src=None, destdir='')Untar the specified file. src: The source tar file destdir: The destination directory (current directory) |
unzip(src, destdir)Unzip the specified file into the given directory. src: The source zip file destdir: The destination directory taskname: The taskname |
zip(basedir='', destfile=None, compress=True, includeFilters=['.*'], excludeFilters=[])Create a zip archive. basedir: The base directory (current directory) destfile: The ZIP file to write to (REQUIRED) compress: Set to false to disable compression (True) includeFilters: Regular expression Strings to include files (All files) excludeFilters: Regular expression strings to exclude files (empty list) |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Apr 23 15:39:19 2004 | http://epydoc.sf.net |