mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
22 lines
388 B
Python
22 lines
388 B
Python
from base import Task
|
|
from common import phases
|
|
|
|
|
|
class CreateWorkspace(Task):
|
|
description = 'Creating workspace'
|
|
phase = phases.preparation
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
import os
|
|
os.makedirs(info.workspace)
|
|
|
|
|
|
class DeleteWorkspace(Task):
|
|
description = 'Deleting workspace'
|
|
phase = phases.cleaning
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
import os
|
|
os.rmdir(info.workspace)
|