File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/ClassyGeeks/Potion/Console/Command Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2323use Assetic \Filter \Yui \CssCompressorFilter ;
2424use Assetic \Filter \LessphpFilter ;
2525use Assetic \Filter \JSMinFilter ;
26- use Assetic \Filter \JSqueezeFilter ;
2726use Assetic \Filter \ScssphpFilter ;
2827use 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 }
You can’t perform that action at this time.
0 commit comments