bootstrap-vz/base/bootstrapinfo.py
Anders Ingemann 0eb5eecfc2 Place everything in info.workspace
instead of spreading files all around the disk
2013-10-27 18:11:13 +01:00

13 lines
430 B
Python

class BootstrapInformation(object):
def __init__(self, manifest=None, debug=False):
self.manifest = manifest
from fs import load_volume
self.volume = load_volume(self.manifest.volume)
self.debug = debug
import random
self.run_id = random.randrange(16 ** 8)
import os.path
workspace_dirname = '{id:x}'.format(id=self.run_id)
self.workspace = os.path.join(manifest.bootstrapper['workspace'], workspace_dirname)