예제 #1
0
        private void DeploySite()
        {
            Action <string> normalizedDir  = FuncExtensions.Partial <Func <string, string>, string>(CreateDirectory, NormalizeFileNameSite);
            Action <string> normalizedFile = FuncExtensions.Partial <Func <string, string>, string>(UploadFile, NormalizeFileNameSite);

            TraverseFileSystem(this.pathToSite, normalizedDir, normalizedFile, this.allowedExtensions, "bin obj Properties");
        }
예제 #2
0
        private void DeployGame()
        {
            Action <string> rootNormalizedDir  = FuncExtensions.Partial <Func <string, string>, string>(CreateDirectory, NormalizeFileNameGame);
            Action <string> rootNormalizedFile = FuncExtensions.Partial <Func <string, string>, string>(UploadFile, NormalizeFileNameGame);

            string ignored = "Code Scripts Docs Tests typings bin obj Properties";

            TraverseFileSystem(this.pathToGame, rootNormalizedDir, rootNormalizedFile, this.allowedExtensions, ignored);
            this.CreateDirectory((str) => this.Root + str, "Code/");
            this.CreateDirectory((str) => this.Root + str, "Code/Physics/");
            this.CreateDirectory((str) => this.Root + str, "Scripts/");
            this.CreateDirectory((str) => this.Root + str, "Scripts/implementations");
            foreach (var file in this.workerFiles)
            {
                this.UploadFile(this.NormalizeFileNameGame, this.pathToGame + "\\" + file);
            }
        }