mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
21 lines
362 B
Python
21 lines
362 B
Python
![]() |
from base import Task
|
||
|
from common import phases
|
||
|
|
||
|
|
||
|
class CreateWorkspace(Task):
|
||
|
description = 'Creating workspace'
|
||
|
phase = phases.preparation
|
||
|
|
||
|
def run(self, info):
|
||
|
import os
|
||
|
os.makedirs(info.workspace)
|
||
|
|
||
|
|
||
|
class DeleteWorkspace(Task):
|
||
|
description = 'Deleting workspace'
|
||
|
phase = phases.cleaning
|
||
|
|
||
|
def run(self, info):
|
||
|
import os
|
||
|
os.rmdir(info.workspace)
|