Package flumotion :: Package common :: Module bundle :: Class Bundler
[hide private]

Class Bundler

source code

Known Subclasses:

I bundle files into a bundle so they can be cached remotely easily.

Instance Methods [hide private]
 
__init__(self, name)
Create a new bundle.
source code
 
add(self, source, destination=None)
Add files to the bundle.
source code
flumotion.common.bundle.Bundle
bundle(self)
Bundle the files registered with the bundler.
source code
 
_buildzip(self) source code
Method Details [hide private]

add(self, source, destination=None)

source code 

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