예제 #1
0
        public static void Main(string[] args)
        {
            var awsEnvironmentsFile = ConfigurationManager.AppSettings[Constants.AWSEnvironmentsFileKey];
            var serverIconsFile = ConfigurationManager.AppSettings[Constants.ServerIconsFileKey];
            var basePath = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
            if (basePath != null && !Path.IsPathRooted(awsEnvironmentsFile))
            {
                awsEnvironmentsFile = Path.Combine(basePath, ConfigurationManager.AppSettings[Constants.AWSEnvironmentsFileKey]);
            }

            if (basePath != null && !Path.IsPathRooted(serverIconsFile))
            {
                serverIconsFile = Path.Combine(basePath, ConfigurationManager.AppSettings[Constants.ServerIconsFileKey]);
            }

            stylesFile = ConfigurationManager.AppSettings[Constants.StylesFileKey];
            serverIcons = LoadServerIcons(serverIconsFile);
            var awsEnvironments = LoadAWSEnvironments(awsEnvironmentsFile);
            if (awsEnvironments != null)
            {
                foreach (var awsEnvironment in awsEnvironments.List)
                {
                    BuildEnvironmentPage(awsEnvironment);
                }
            }
        }
예제 #2
0
        public static void Main(string[] args)
        {
            var awsEnvironmentsFile = ConfigurationManager.AppSettings[Constants.AWSEnvironmentsFileKey];
            var serverIconsFile     = ConfigurationManager.AppSettings[Constants.ServerIconsFileKey];
            var basePath            = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);

            if (basePath != null && !Path.IsPathRooted(awsEnvironmentsFile))
            {
                awsEnvironmentsFile = Path.Combine(basePath, ConfigurationManager.AppSettings[Constants.AWSEnvironmentsFileKey]);
            }

            if (basePath != null && !Path.IsPathRooted(serverIconsFile))
            {
                serverIconsFile = Path.Combine(basePath, ConfigurationManager.AppSettings[Constants.ServerIconsFileKey]);
            }

            stylesFile  = ConfigurationManager.AppSettings[Constants.StylesFileKey];
            serverIcons = LoadServerIcons(serverIconsFile);
            var awsEnvironments = LoadAWSEnvironments(awsEnvironmentsFile);

            if (awsEnvironments != null)
            {
                foreach (var awsEnvironment in awsEnvironments.List)
                {
                    BuildEnvironmentPage(awsEnvironment);
                }
            }
        }