@@ -193,13 +193,13 @@ private static string ProbeForSrcDirectory()
193
193
return result ;
194
194
}
195
195
196
- private static string GetConfigDirectory ( string targetDirectory = "Package " )
196
+ private static string GetConfigDirectory ( string targetDirectory = "artifacts " )
197
197
{
198
198
string result = null ;
199
- var srcDirectory = ProbeForSrcDirectory ( ) ;
200
- if ( srcDirectory != null )
199
+ var directoryPath = Path . Combine ( ProbeForSrcDirectory ( ) , ".." ) ;
200
+ if ( Directory . Exists ( directoryPath ) )
201
201
{
202
- var baseDirectory = Path . Combine ( srcDirectory , targetDirectory ) ;
202
+ var baseDirectory = Path . Combine ( directoryPath , targetDirectory ) ;
203
203
if ( Directory . Exists ( baseDirectory ) )
204
204
{
205
205
result = Directory . EnumerateDirectories ( baseDirectory ) . FirstOrDefault (
@@ -216,13 +216,13 @@ private static string GetConfigDirectory(string targetDirectory = "Package")
216
216
return result ;
217
217
}
218
218
219
- private static string GetRMModuleDirectory ( string targetDirectory = "Package " )
219
+ private static string GetRMModuleDirectory ( string targetDirectory = "artifacts " )
220
220
{
221
221
string configDirectory = GetConfigDirectory ( targetDirectory ) ;
222
- return ( string . IsNullOrEmpty ( configDirectory ) ) ? null : Path . Combine ( configDirectory , "ResourceManager" , "AzureResourceManager" ) ;
222
+ return ( string . IsNullOrEmpty ( configDirectory ) ) ? null : configDirectory ;
223
223
}
224
224
225
- private static string GetStorageDirectory ( string targetDirectory = "Package " )
225
+ private static string GetStorageDirectory ( string targetDirectory = "artifacts " )
226
226
{
227
227
string configDirectory = GetConfigDirectory ( targetDirectory ) ;
228
228
return ( string . IsNullOrEmpty ( configDirectory ) ) ? null : Path . Combine ( configDirectory , "Storage" ) ;
@@ -540,9 +540,9 @@ public void SetupModules(AzureModule mode, params string[] modules)
540
540
if ( mode == AzureModule . AzureProfile )
541
541
{
542
542
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" ) ) ;
546
546
}
547
547
else if ( mode == AzureModule . AzureServiceManagement )
548
548
{
@@ -560,19 +560,19 @@ public void SetupModulesFromCommon(AzureModule mode, params string[] modules)
560
560
if ( mode == AzureModule . AzureProfile )
561
561
{
562
562
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" ) ) ;
566
566
}
567
567
else if ( mode == AzureModule . AzureServiceManagement )
568
568
{
569
569
this . modules . Add ( Path . Combine ( PackageDirectoryFromCommon , @"ServiceManagement\Azure\Azure.psd1" ) ) ;
570
570
}
571
571
else if ( mode == AzureModule . AzureResourceManager )
572
572
{
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" ) ) ;
576
576
}
577
577
else
578
578
{
0 commit comments