@@ -193,13 +193,13 @@ private static string ProbeForSrcDirectory()
193193 return result ;
194194 }
195195
196- private static string GetConfigDirectory ( string targetDirectory = "Package " )
196+ private static string GetConfigDirectory ( string targetDirectory = "artifacts " )
197197 {
198198 string result = null ;
199- var srcDirectory = ProbeForSrcDirectory ( ) ;
200- if ( srcDirectory != null )
199+ var directoryPath = Path . Combine ( ProbeForSrcDirectory ( ) , ".." ) ;
200+ if ( Directory . Exists ( directoryPath ) )
201201 {
202- var baseDirectory = Path . Combine ( srcDirectory , targetDirectory ) ;
202+ var baseDirectory = Path . Combine ( directoryPath , targetDirectory ) ;
203203 if ( Directory . Exists ( baseDirectory ) )
204204 {
205205 result = Directory . EnumerateDirectories ( baseDirectory ) . FirstOrDefault (
@@ -216,13 +216,13 @@ private static string GetConfigDirectory(string targetDirectory = "Package")
216216 return result ;
217217 }
218218
219- private static string GetRMModuleDirectory ( string targetDirectory = "Package " )
219+ private static string GetRMModuleDirectory ( string targetDirectory = "artifacts " )
220220 {
221221 string configDirectory = GetConfigDirectory ( targetDirectory ) ;
222- return ( string . IsNullOrEmpty ( configDirectory ) ) ? null : Path . Combine ( configDirectory , "ResourceManager" , "AzureResourceManager" ) ;
222+ return ( string . IsNullOrEmpty ( configDirectory ) ) ? null : configDirectory ;
223223 }
224224
225- private static string GetStorageDirectory ( string targetDirectory = "Package " )
225+ private static string GetStorageDirectory ( string targetDirectory = "artifacts " )
226226 {
227227 string configDirectory = GetConfigDirectory ( targetDirectory ) ;
228228 return ( string . IsNullOrEmpty ( configDirectory ) ) ? null : Path . Combine ( configDirectory , "Storage" ) ;
@@ -540,9 +540,9 @@ public void SetupModules(AzureModule mode, params string[] modules)
540540 if ( mode == AzureModule . AzureProfile )
541541 {
542542 this . modules . Add ( Path . Combine ( PackageDirectory , @"ServiceManagement\Azure\Azure.psd1" ) ) ;
543- this . modules . Add ( Path . Combine ( PackageDirectory , @"ResourceManager\AzureResourceManager\ AzureRM.Accounts\AzureRM.Accounts.psd1" ) ) ;
544- this . modules . Add ( Path . Combine ( PackageDirectory , @"ResourceManager\AzureResourceManager\ AzureRM.Resources\AzureRM.Resources.psd1" ) ) ;
545- this . modules . Add ( Path . Combine ( PackageDirectory , @"ResourceManager\AzureResourceManager\ AzureRM.Resources\AzureRM.Tags.psd1" ) ) ;
543+ this . modules . Add ( Path . Combine ( PackageDirectory , @"AzureRM.Accounts\AzureRM.Accounts.psd1" ) ) ;
544+ this . modules . Add ( Path . Combine ( PackageDirectory , @"AzureRM.Resources\AzureRM.Resources.psd1" ) ) ;
545+ this . modules . Add ( Path . Combine ( PackageDirectory , @"AzureRM.Resources\AzureRM.Tags.psd1" ) ) ;
546546 }
547547 else if ( mode == AzureModule . AzureServiceManagement )
548548 {
@@ -560,19 +560,19 @@ public void SetupModulesFromCommon(AzureModule mode, params string[] modules)
560560 if ( mode == AzureModule . AzureProfile )
561561 {
562562 this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ServiceManagement\Azure\Azure.psd1" ) ) ;
563- this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ResourceManager\AzureResourceManager\ AzureRM.Accounts\AzureRM.Accounts.psd1" ) ) ;
564- this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ResourceManager\AzureResourceManager\ AzureRM.Resources\AzureRM.Resources.psd1" ) ) ;
565- this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ResourceManager\AzureResourceManager\ AzureRM.Resources\AzureRM.Tags.psd1" ) ) ;
563+ this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"AzureRM.Accounts\AzureRM.Accounts.psd1" ) ) ;
564+ this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"AzureRM.Resources\AzureRM.Resources.psd1" ) ) ;
565+ this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"AzureRM.Resources\AzureRM.Tags.psd1" ) ) ;
566566 }
567567 else if ( mode == AzureModule . AzureServiceManagement )
568568 {
569569 this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ServiceManagement\Azure\Azure.psd1" ) ) ;
570570 }
571571 else if ( mode == AzureModule . AzureResourceManager )
572572 {
573- this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ResourceManager\AzureResourceManager\ AzureRM.Accounts\AzureRM.Accounts.psd1" ) ) ;
574- this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ResourceManager\AzureResourceManager\ AzureRM.Resources\AzureRM.Resources.psd1" ) ) ;
575- this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ResourceManager\AzureResourceManager\ AzureRM.Resources\AzureRM.Tags.psd1" ) ) ;
573+ this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"AzureRM.Accounts\AzureRM.Accounts.psd1" ) ) ;
574+ this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"AzureRM.Resources\AzureRM.Resources.psd1" ) ) ;
575+ this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"AzureRM.Resources\AzureRM.Tags.psd1" ) ) ;
576576 }
577577 else
578578 {
0 commit comments