bootstrap-vz/base/bootstrapinfo.py

15 lines
439 B
Python
Raw Normal View History

2013-05-02 19:13:35 +02:00
class BootstrapInformation(object):
def __init__(self, manifest=None, debug=False):
2013-05-02 19:13:35 +02:00
self.manifest = manifest
from fs import load_volume
self.volume = load_volume(self.manifest.volume)
self.debug = debug
import random
self.run_id = '{id:08x}'.format(id=random.randrange(16 ** 8))
import os.path
self.workspace = os.path.join(manifest.bootstrapper['workspace'], self.run_id)
self.initd = {'install': {}, 'disable': []}