///GENMHASH:68455C77C6788F7CF6BDE2F512F45F78:DCDC1D80993B039A04D03793EEA3BBF5
 public RegistrySourceTriggerImpl WithSourceControl(SourceControlType sourceControl)
 {
     if (IsInCreateMode())
     {
         this.inner.SourceRepository.SourceControlType = sourceControl.ToString();
     }
     else
     {
         this.sourceTriggerUpdateParameters.SourceRepository.SourceControlType = sourceControl.ToString();
     }
     return(this);
 }
Пример #2
0
        public ISourceControlRepository Create(SourceControlType type)
        {
            switch (type)
            {
            case SourceControlType.Svn:
                return(new SvnSourceControlRepository());

            case SourceControlType.Git:
                return(new GitSourceControlRepository());

            case SourceControlType.FileSystem:
                return(new FileSystemSourceControlRepository());

            default:
                throw new AspNetDeployException("Unknown SourceControlType: " + type);
            }
        }
Пример #3
0
        public void LoadDefaults()
        {
            // Line Endings and Serialization
            this.projectLineEndings     = LineEndings.Unix;
            this.forceSerializationMode = true;
            this.serializationMode      = SerializationMode.ForceText;

            // Source Control Ignore File
            this.sourceControlType     = SourceControlType.Plastic;
            this.ignoreTemplateP4      = EditorUtil.GetAssetByGuid <TextAsset>("6d6c8d3e6aeaff34d89c7f2be0a80a0d");
            this.ignoreTemplateGit     = EditorUtil.GetAssetByGuid <TextAsset>("fae63426d3cf11c4cb39244488e2ec17");
            this.ignoreTemplateCollab  = EditorUtil.GetAssetByGuid <TextAsset>("075673ae8dd02af42b6e15b9f718e0a7");
            this.ignoreTemplatePlastic = EditorUtil.GetAssetByGuid <TextAsset>("aafcbe005eaa6754b921e846efb9043d");
            this.p4IgnoreFileName      = ".p4ignore";
            this.autosetP4IgnoreEnvironmentVariable = true;

            // Template File Overriding
            this.overrideTemplateFiles            = true;
            this.templateMonoBehaviour            = EditorUtil.GetAssetByGuid <TextAsset>("5ec2f7fdcef1e6f45b2c1a7510be3eaa");
            this.templatePlayableAsset            = EditorUtil.GetAssetByGuid <TextAsset>("e4d5fd6d65c83d24da92fbd00d7f5499");
            this.templatePlayableBehaviour        = EditorUtil.GetAssetByGuid <TextAsset>("6ccc7dcc8373b7f4197de5cd7d7e7a16");
            this.templateStateMachineBehaviour    = EditorUtil.GetAssetByGuid <TextAsset>("fed9948eb87d1be48ae323bd48cf729f");
            this.templateSubStateMachineBehaviour = EditorUtil.GetAssetByGuid <TextAsset>("09afd0c31b0565e4a8a74ecb68ceef24");
            this.templateEditorTestScript         = EditorUtil.GetAssetByGuid <TextAsset>("c31e8a34fb6708144809d22dffdc73f6");

            // Editorconfig
            this.useEditorConfig      = true;
            this.editorConfigFileName = ".editorconfig";
            this.editorConfigTemplate = EditorUtil.GetAssetByGuid <TextAsset>("f6c774b1ff43524428c88bc6afaca2d7");

            // PlasticSCM Settings
            this.plasticAutoSetFileCasingError   = true;
            this.plasticAutoSetYamlMergeToolPath = true;

            // Analyzers
            this.analyzers = new List <Analyzer>
            {
                new Analyzer()
                {
                    Name    = "StyleCop",
                    Ruleset = EditorUtil.GetAssetByGuid <TextAsset>("6d22bf8a5b4217246a8bd27939b3a093"),
                    Config  = EditorUtil.GetAssetByGuid <TextAsset>("447a0d2defa062a4cb1ab9f0a161d7f7"),
                    DLLs    = new List <TextAsset>
                    {
                        EditorUtil.GetAssetByGuid <TextAsset>("34b2bcdbab6772c43803d97146553550"),
                        EditorUtil.GetAssetByGuid <TextAsset>("fdf22cdd44a87ed4f9ae0c0d6e685ae6"),
                        EditorUtil.GetAssetByGuid <TextAsset>("d86a7268d4b5874478f3bf9019de4dd3"),
                    },
                    CSProjects = new List <string>
                    {
                        // "Assembly-CSharp",
                        // "Assembly-CSharp.Player",
                        // "Assembly-CSharp-Editor",
                        "LostLibrary",
                        "LostLibrary.Editor",
                        "LostLibrary.LBE",
                        "LostLibrary.LBE.Player",
                        "LostLibrary.Player",
                        "LostLibrary.Test",
                    },
                }
            };
        }
Пример #4
0
 /// <summary>
 /// The function that allows the user to input their own kind of source control.
 /// </summary>
 /// <param name="sourceControl">The source control the user wishes to use.</param>
 /// <return>The next stage of the container registry source trigger definition.</return>
 RegistrySourceTrigger.Update.IUpdate RegistrySourceTrigger.Update.ISourceControlType.WithSourceControl(SourceControlType sourceControl)
 {
     return(this.WithSourceControl(sourceControl));
 }
Пример #5
0
 /// <summary>
 /// The function that allows the user to input their own kind of source control.
 /// </summary>
 /// <param name="sourceControl">The source control the user wishes to use.</param>
 /// <return>The next stage of the container registry source trigger definition.</return>
 RegistrySourceTrigger.UpdateDefinition.IRepositoryUrl RegistrySourceTrigger.UpdateDefinition.IBlank.WithSourceControl(SourceControlType sourceControl)
 {
     return(this.WithSourceControl(sourceControl));
 }
Пример #6
0
 public async Task CreateProject(string name, string description, SourceControlType sourceControl,
     string templateId)
 {
     throw new NotImplementedException(
         "Sorry! This method is not implemented. If you want to contribute with the library, I accept Pull Requests at https://github.com/cjgaliana/LinqToVSO");
 }
 public ActionResult AddPost(SourceControlType sourceControlType, string url)
 {
     return(this.Content(sourceControlType + " " + url));
 }