@@ -132,7 +132,9 @@ init = function(host, port, contentPath, user, password, secure, wcmDir) {
132132 createFolder ( wcmCwd + libTitle ) ;
133133 createFolder ( wcmCwd + libTitle + Path . sep + 'Presentation Templates' ) ;
134134 createFolder ( wcmCwd + libTitle + Path . sep + 'Components' ) ;
135- createFolder ( wcmCwd + libTitle + Path . sep + cAuthoringTemplates ) ;
135+ // only do content template components if the user turns on trial code
136+ if ( options . trial && options . trial == true )
137+ createFolder ( wcmCwd + libTitle + Path . sep + cAuthoringTemplates ) ;
136138 progGoal ++ ;
137139 var totalCount = 0 ;
138140 var libSettings = utils . getSettings ( wcmCwd + libTitle + Path . sep ) ;
@@ -439,7 +441,11 @@ function pullType(options, type, libTitle, extension, map) {
439441function pullTypeParallel ( options , type , libTitle , extension , map ) {
440442 debugLogger . trace ( 'pullType::optioins ' + options + ' type::' + type + ' libTitle::' + libTitle + ' extension::' + extension ) ;
441443 var deferred = Q . defer ( ) ;
442- if ( includeOption ( options , type ) ) {
444+ if ( ( options . trial == undefined || options . trial == false ) && type == wcmRequests . wcmTypes . contentTemplate )
445+ {
446+ deferred . resolve ( 0 ) ;
447+ }
448+ else if ( includeOption ( options , type ) ) {
443449 wcmRequests . getWcmItemsOfType ( type , libTitle ) . then ( function ( entries ) {
444450 var promises = [ ] ;
445451 progGoal += entries . length ;
@@ -482,7 +488,11 @@ function pullTypeParallel(options, type, libTitle, extension, map) {
482488function pullTypeSequential ( options , type , libTitle , extension , map ) {
483489 debugLogger . trace ( 'pullType::optioins ' + options + ' type::' + type + ' libTitle::' + libTitle + ' extension::' + extension ) ;
484490 var deferred = Q . defer ( ) ;
485- if ( includeOption ( options , type ) ) {
491+ if ( ( options . trial == undefined || options . trial == false ) && type == wcmRequests . wcmTypes . contentTemplate )
492+ {
493+ deferred . resolve ( 0 ) ;
494+ }
495+ else if ( includeOption ( options , type ) ) {
486496 wcmRequests . getWcmItemsOfType ( type , libTitle ) . then ( function ( entries ) {
487497 progGoal += entries . length ;
488498 if ( entries . length == 0 ) {
0 commit comments