public virtual GeneratorActionResult ExecuteAction(GeneratorArguments arguments, Core.InputFields.ActionInputValues values, Dictionary <string, string> parameters)
        {
            var location = values.GetString("DestinationFolder");

            try
            {
                GitCommandRunner.RunCommand("config --global http.postBuffer 1548576000", location);
                GitCommandRunner.RunCommand("push --all origin", location);
            }
            catch (Exception ex)
            {
                return(new GeneratorActionResult(false, ex.Message));
            }

            return(new GeneratorActionResult(true, ""));
        }
Ejemplo n.º 2
0
        public virtual GeneratorActionResult ExecuteAction(GeneratorArguments arguments, Core.InputFields.ActionInputValues values, Dictionary <string, string> parameters)
        {
            var cloneUrl = values.GetString("CloneUrl");
            var location = values.GetString("DestinationFolder");

            try
            {
                GitCommandRunner.RunCommand(string.Format("clone {0} ./", cloneUrl), location);
            }
            catch (Exception ex)
            {
                return(new GeneratorActionResult(false, ex.Message));
            }

            return(new GeneratorActionResult(true, ""));
        }
        public virtual GeneratorActionResult ExecuteAction(GeneratorArguments arguments, Core.InputFields.ActionInputValues values, Dictionary <string, string> parameters)
        {
            var location = values.GetString("DestinationFolder");

            try
            {
                GitCommandRunner.RunCommand("add -A", location);
                GitCommandRunner.RunCommand(string.Format("commit -m \"{0}\"", string.Format(GitCommitMessage, Environment.UserName)), location);
            }
            catch (Exception ex)
            {
                return(new GeneratorActionResult(false, ex.Message));
            }

            return(new GeneratorActionResult(true, ""));
        }