diff options
Diffstat (limited to 'src/jobs/CreateFile.php')
-rw-r--r-- | src/jobs/CreateFile.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/jobs/CreateFile.php b/src/jobs/CreateFile.php new file mode 100644 index 0000000..439925f --- /dev/null +++ b/src/jobs/CreateFile.php @@ -0,0 +1,15 @@ +<?php + +namespace jobs; + +class CreateFile extends \Job +{ + + public function run() + { + $file = $this->input['file']; + if (!touch($file)) + throw new \Exception("failed to touch file '".$file."'"); + } + +} |