X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FPreflight%2FPreflightLog.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FPreflight%2FPreflightLog.php;h=8f08a7218c0218399129b35fa17902b59721452c;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/src/Preflight/PreflightLog.php b/vendor/drush/drush/src/Preflight/PreflightLog.php new file mode 100644 index 000000000..8f08a7218 --- /dev/null +++ b/vendor/drush/drush/src/Preflight/PreflightLog.php @@ -0,0 +1,33 @@ +debug; + } + + /** + * @param bool $debug + */ + public function setDebug($debug) + { + $this->debug = $debug; + return $this; + } + + public function log($message) + { + if ($this->getDebug()) { + fwrite(STDERR, ' [preflight] ' . $message . "\n"); + } + } +}