Skip to content

Commit ae6f1c3

Browse files
committed
Adding further output on making assets.
1 parent 3fe36a4 commit ae6f1c3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/ClassyGeeks/Potion/Console/Command/MakeAssetsCommand.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Assetic\Filter\Yui\CssCompressorFilter;
2424
use Assetic\Filter\LessphpFilter;
2525
use Assetic\Filter\JSMinFilter;
26-
use Assetic\Filter\JSqueezeFilter;
2726
use Assetic\Filter\ScssphpFilter;
2827
use Assetic\Filter\Yui\JsCompressorFilter;
2928

@@ -87,6 +86,11 @@ public function fire()
8786
$this->config['assets_path'] = rtrim($this->config['assets_path'], '/');
8887
$this->config['assets_path'] = rtrim($this->config['assets_path'], '\\');
8988

89+
// Log
90+
$this->info('Making assets using:');
91+
$this->info("\tResource Path: {$this->config['resource_path']}");
92+
$this->info("\tAsset Path: {$this->config['assets_path']}");
93+
9094
// Make the assets path
9195
if (!$this->makePath($this->config['assets_path'])) {
9296
throw new \Exception("Unable to make assets_path from config: {$this->config['assets_path']}");
@@ -259,16 +263,21 @@ protected function versionFile($file_path)
259263
*/
260264
protected function makePath($path)
261265
{
266+
// Log
267+
$this->info("Attempting to make path: {$path}");
268+
262269
// Make
263270
if (!is_dir($path)) {
264271
if (mkdir($path) === false) {
272+
$this->error("Error in making path: {$path}");
265273
return false;
266274
}
267275
}
268276

269277
// Make writable
270278
if (!is_writable($path)) {
271279
if (chmod($path, 0777) === false) {
280+
$this->error("Error in making path writable: {$path}");
272281
return false;
273282
}
274283
}

0 commit comments

Comments
 (0)