mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
13 lines
430 B
Python
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)
|