@@ -13,7 +13,7 @@ var fs = require('fs');
1313var settings = require ( '../package.json' ) ;
1414var Tasks = require ( './config/commands' ) . allCommands ;
1515var orderedListOfTasks = require ( './config/commands' ) . orderedListOfCommands ;
16- var Utils = IonicAppLib . utils ;
16+ var appLibUtils = IonicAppLib . utils ;
1717var Logging = IonicAppLib . logging ;
1818var log = Logging . logger ;
1919var Q = require ( 'q' ) ;
@@ -144,7 +144,7 @@ Cli.run = function run(processArgv) {
144144 return Q . fcall ( task . run . bind ( task ) , Cli , argv , rawCliArguments ) ;
145145 }
146146
147- var root = Utils . cdIonicRoot ( ) ;
147+ var root = appLibUtils . cdIonicRoot ( ) ;
148148 var project = IonicProject . load ( root ) ;
149149 argv . v2 = project && project . get ( 'v2' ) ;
150150
@@ -190,7 +190,7 @@ Cli.run = function run(processArgv) {
190190 return Cli . runWithGulp ( argv , task , rawCliArguments ) ;
191191
192192 } catch ( ex ) {
193- return Utils . fail ( ex ) ;
193+ return appLibUtils . fail ( ex ) ;
194194 }
195195} ;
196196
@@ -521,7 +521,7 @@ Cli.printNewsUpdates = function printNewsUpdates(skipNewsCheck) {
521521 log . info ( '+---------------------------------------------------------+\n' . green ) ;
522522 } catch ( ex ) {
523523 q . reject ( 'Error occurred in downloading the CLI messages:' , ex ) ;
524- Utils . fail ( ex ) ;
524+ appLibUtils . fail ( ex ) ;
525525 }
526526 q . resolve ( messagesJson ) ;
527527 } else {
@@ -542,14 +542,14 @@ Cli.gatherInfo = function gatherInfo() {
542542Cli . handleUncaughtExceptions = function handleUncaughtExceptions ( err ) {
543543 log . error ( 'An uncaught exception occurred and has been reported to Ionic' . red . bold ) ;
544544 var errorMessage = typeof err === 'string' ? err : err . message ;
545- Utils . errorHandler ( errorMessage ) ;
545+ appLibUtils . errorHandler ( errorMessage ) ;
546546 process . exit ( 1 ) ;
547547} ;
548548
549549Cli . attachErrorHandling = function attachErrorHandling ( ) {
550- Utils . errorHandler = function errorHandler ( msg ) {
550+ appLibUtils . errorHandler = function errorHandler ( msg ) {
551551 try {
552- log . debug ( 'Cli.Utils .errorHandler msg' , msg , typeof msg ) ;
552+ log . debug ( 'Cli.appLibUtils .errorHandler msg' , msg , typeof msg ) ;
553553 var stack = typeof msg == 'string' ? '' : msg . stack ;
554554 var errorMessage = typeof msg == 'string' ? msg : msg . message ;
555555 if ( msg ) {
@@ -578,11 +578,11 @@ Cli.attachErrorHandling = function attachErrorHandling() {
578578// Backwards compatability for those commands that havent been
579579// converted yet.
580580Cli . fail = function fail ( err , taskHelp ) {
581- Utils . fail ( err , taskHelp ) ;
581+ appLibUtils . fail ( err , taskHelp ) ;
582582} ;
583583
584584Cli . getContentSrc = function getContentSrc ( ) {
585- return Utils . getContentSrc ( process . cwd ( ) ) ;
585+ return appLibUtils . getContentSrc ( process . cwd ( ) ) ;
586586} ;
587587
588588Cli . doRuntimeCheck = function doRuntimeCheck ( version ) {
0 commit comments