-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathO2PlatformConfig.cs
More file actions
49 lines (40 loc) · 1.53 KB
/
O2PlatformConfig.cs
File metadata and controls
49 lines (40 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using FluentSharp.CoreLib;
using FluentSharp.CoreLib.API;
namespace FluentSharp.O2Platform
{
public class O2_Platform_Config
{
public static O2_Platform_Config Current { get; set; }
public string CurrentUser_AppData { get; set;}
public string Folder_Root { get; set;}
public string Folder_Scripts { get; set;}
public string Version_Name { get; set;}
static O2_Platform_Config()
{
Current = new O2_Platform_Config();
}
public O2_Platform_Config()
{
SetUpDefaultValues();
}
public O2_Platform_Config SetUpDefaultValues()
{
CurrentUser_AppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
Version_Name = "OWASP O2 Platform ".append_Version_FluentSharp_Short(); //"O2 Platform v.5.3";
Folder_Root = CurrentUser_AppData.pathCombine(Version_Name.replace(" ","_"));
Folder_Scripts = Folder_Root.pathCombine("O2.Platform.Scripts");
Folder_Root.createDir();
PublicDI.config.MapFolders_And_Set_DefaultValues(Folder_Root);
return this;
}
}
public class O2_Platform_Consts
{
public static string GIT_HUB_O2_PLATFORM_SCRIPTS { get; set; }
static O2_Platform_Consts()
{
GIT_HUB_O2_PLATFORM_SCRIPTS = "https://github.com/o2platform/O2.Platform.Scripts.git";
}
}
}