Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Task / File / loadTasks.php
diff --git a/vendor/consolidation/robo/src/Task/File/loadTasks.php b/vendor/consolidation/robo/src/Task/File/loadTasks.php
new file mode 100644 (file)
index 0000000..c5f39c9
--- /dev/null
@@ -0,0 +1,48 @@
+<?php
+namespace Robo\Task\File;
+
+trait loadTasks
+{
+    /**
+     * @param array|\Iterator $files
+     *
+     * @return \Robo\Task\File\Concat
+     */
+    protected function taskConcat($files)
+    {
+        return $this->task(Concat::class, $files);
+    }
+
+    /**
+     * @param string $file
+     *
+     * @return \Robo\Task\File\Replace
+     */
+    protected function taskReplaceInFile($file)
+    {
+        return $this->task(Replace::class, $file);
+    }
+
+    /**
+     * @param string $file
+     *
+     * @return \Robo\Task\File\Write
+     */
+    protected function taskWriteToFile($file)
+    {
+        return $this->task(Write::class, $file);
+    }
+
+    /**
+     * @param string $filename
+     * @param string $extension
+     * @param string $baseDir
+     * @param bool $includeRandomPart
+     *
+     * @return \Robo\Task\File\TmpFile
+     */
+    protected function taskTmpFile($filename = 'tmp', $extension = '', $baseDir = '', $includeRandomPart = true)
+    {
+        return $this->task(TmpFile::class, $filename, $extension, $baseDir, $includeRandomPart);
+    }
+}