Package flumotion :: Package common :: Module bundle :: Class Bundler
[show private | hide private]
[frames | no frames]

Class Bundler


I bundle files into a bundle so they can be cached remotely easily.
Method Summary
  __init__(self, name)
Create a new bundle.
  add(self, source, destination)
Add files to the bundle.
flumotion.common.bundle.Bundle bundle(self)
Bundle the files registered with the bundler.

Method Details

__init__(self, name)
(Constructor)

Create a new bundle.

add(self, source, destination=None)

Add files to the bundle.
Parameters:
source - the path to the file to add to the bundle.
destination - a relative path to store this file in in the bundle. If unspecified, this will be stored in the top level.
Returns:
the path the file got stored as

bundle(self)

Bundle the files registered with the bundler.
Returns:
flumotion.common.bundle.Bundle

Generated by Epydoc 2.1 on Wed Feb 16 07:22:59 2005 http://epydoc.sf.net