コード例 #1
0
        private static Organization generateOrganizationManifest()
        {
            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERNICK);
            String nick = Console.ReadLine();

            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERUSERNAME);
            String username = Console.ReadLine();

            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERPASSWORD);
            String password = Console.ReadLine();

            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERTOKEN);
            String token = Console.ReadLine();

            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERAPI);
            String api = Console.ReadLine();

            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERPRODUCTION);

            string production = (Console.ReadLine() == "y") ? "true" : "false";

            Config m_config = getConfig();

            Organization vaOrganization = createOrganization(nick, username, password, token, production, api, m_config);

            m_config.Organization.Add(vaOrganization);

            ManageXMLConfig.doWrite(m_config);

            return(vaOrganization);
        }
コード例 #2
0
        public static void addOrganizationDeploy(Organization organization)
        {
            Config m_config = getConfig();
            Dictionary <int, Organization> m_organizations = new Dictionary <int, Organization>();
            bool isHaveOrganization = m_config.Organization != null && m_config.Organization.Count > 0;

            foreach (var item in m_config.Organization)
            {
                if (item.Id == organization.Id)
                {
                    item.DeploySettings = organization.DeploySettings;
                }
            }

            ManageXMLConfig.doWrite(m_config);
        }
コード例 #3
0
        private static PackageManifest generatePackageManifest()
        {
            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERPATHPACKAGE);
            String pathPackage = Console.ReadLine();

            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERPATHREPOSITORY);
            String pathRepository = Console.ReadLine();

            ConsoleHelper.WriteQuestionLine(Constants.LANG_PLEASEENTERTARGETPATH);
            String targetFiles = Console.ReadLine();

            Config m_config = getConfig();

            PackageManifest myManifest = createPackageManifest(pathPackage, pathRepository, targetFiles, m_config);

            m_config.PackageManifest.Add(myManifest);

            ManageXMLConfig.doWrite(m_config);

            return(myManifest);
        }