Example #1
0
        public virtual void WriteIntegration(Action <string> writer, VersionVariables variables)
        {
            if (writer == null)
            {
                return;
            }

            writer(string.Format("Executing GenerateSetVersionMessage for '{0}'.", GetType().Name));
            writer(GenerateSetVersionMessage(variables.FullSemVer));
            writer(string.Format("Executing GenerateBuildLogOutput for '{0}'.", GetType().Name));
            foreach (var buildParameter in BuildOutputFormatter.GenerateBuildLogOutput(this, variables))
            {
                writer(buildParameter);
            }
        }
Example #2
0
        public virtual void WriteIntegration(SemanticVersion semanticVersion, Action <string> writer)
        {
            if (semanticVersion == null)
            {
                return;
            }

            if (writer == null)
            {
                return;
            }

            writer(string.Format("Executing GenerateSetVersionMessage for '{0}'.", GetType().Name));
            writer(GenerateSetVersionMessage(semanticVersion.ToString("f")));
            writer(string.Format("Executing GenerateBuildLogOutput for '{0}'.", GetType().Name));
            foreach (var buildParameter in BuildOutputFormatter.GenerateBuildLogOutput(semanticVersion, this))
            {
                writer(buildParameter);
            }
        }
        public virtual void WriteIntegration(VersionAndBranch versionAndBranch, Action <string> writer)
        {
            if (versionAndBranch == null)
            {
                return;
            }

            if (writer == null)
            {
                return;
            }

            writer(string.Format("Executing GenerateSetVersionMessage for '{0}'.", GetType().Name));
            writer(GenerateSetVersionMessage(versionAndBranch.GenerateSemVer()));
            writer(string.Format("Executing GenerateBuildLogOutput for '{0}'.", GetType().Name));
            foreach (var buildParameter in BuildOutputFormatter.GenerateBuildLogOutput(versionAndBranch, this))
            {
                writer(buildParameter);
            }
        }
Example #4
0
 void WriteVariablesFile(VersionVariables variables)
 {
     File.WriteAllLines(_file, BuildOutputFormatter.GenerateBuildLogOutput(this, variables));
 }