bootstrap-vz/providers/raw/tasks/fake.py

14 lines
298 B
Python
Raw Normal View History

2013-07-26 08:50:53 +02:00
from base import Task
from common import phases
import os.path
class Fake(Task):
description = 'create fake file'
phase = phases.system_modification
def run(self, info):
fake_path = os.path.join(info.root, 'fake.txt')
with open(fake_path, 'a') as fakefile:
fakefile.write("fake file")