@@ -24,7 +24,7 @@ module.exports = {
2424 // use Plugin to standardise name
2525 params . newName = new Plugin ( params . newName ) . packageName ;
2626
27- log ( chalk . yellow ( 'Using registry at' , Constants . Registry ) ) ;
27+ log ( chalk . yellow ( 'Using registry at' , Constants . getRegistry ( ) ) ) ;
2828 log ( chalk . yellow ( 'Plugin will be renamed to' , params . newName ) ) ;
2929
3030 Q ( params )
@@ -95,7 +95,7 @@ function rename(params) {
9595 var query = '?access_token=' + params . token ;
9696
9797 request ( {
98- url : Constants . Registry + '/' + path + query ,
98+ url : Constants . getRegistry ( ) + '/' + path + query ,
9999 method :'GET' ,
100100 headers : { 'User-Agent' :'adapt-cli' } ,
101101 followRedirect :false
@@ -113,7 +113,7 @@ function rename(params) {
113113function exists ( plugin ) {
114114 var deferred = Q . defer ( ) ;
115115
116- bower . commands . search ( plugin . toString ( ) , { registry : Constants . Registry } )
116+ bower . commands . search ( plugin . toString ( ) , { registry : Constants . getRegistry ( ) } )
117117 . on ( 'end' , function ( result ) {
118118 var matches = result . filter ( exactMatch ( plugin . toString ( ) ) ) ;
119119 deferred . resolve ( ! ! matches . length ) ;
@@ -135,4 +135,4 @@ function exactMatch(pattern) {
135135 var regexp = new RegExp ( pattern , 'i' ) ;
136136 return regexp . test ( item . name ) ;
137137 } ;
138- }
138+ }
0 commit comments