Esempio n. 1
0
        internal static bool NeedsConfiguration()
        {
            string plasticClientBinDir = PlasticInstallPath.GetClientBinDir();

            if (string.IsNullOrEmpty(plasticClientBinDir))
            {
                return(true);
            }

            SetupUnityEditionToken.FromPlasticInstallation(plasticClientBinDir);

            return(ConfigurationChecker.NeedConfiguration());
        }
        internal static bool NeedsConfiguration()
        {
            string clientBinFolder = PlasticInstallPath.GetClientBinDir();

            if (string.IsNullOrEmpty(clientBinFolder))
            {
                return(true);
            }

            SetupEditionFile(clientBinFolder);

            return(ConfigurationChecker.NeedConfiguration());
        }
Esempio n. 3
0
        internal static void CreateCloudEditionTokenIfNeeded()
        {
            string toolPath = PlasticInstallPath.GetPlasticExePath();

            if (string.IsNullOrEmpty(toolPath))
            {
                return;
            }

            string tokenFilePath = UserConfigFolder.GetConfigFile(
                EditionToken.CLOUD_EDITION_FILE_NAME);

            File.Create(tokenFilePath).Dispose();
        }
Esempio n. 4
0
        internal static bool NeedsConfiguration()
        {
            string plasticClientBinDir = PlasticInstallPath.GetClientBinDir();

            if (!string.IsNullOrEmpty(plasticClientBinDir))
            {
                SetupUnityEditionToken.FromPlasticInstallation(plasticClientBinDir);
            }

            if (ConfigurationChecker.NeedConfiguration())
            {
                return(true);
            }

            if (ClientConfig.Get().GetClientConfigData().WorkingMode == "SSOWorkingMode" &&
                !CmConnection.Get().IsAnyTokenConfigured())
            {
                return(true);
            }

            return(false);
        }