Skip to content

Commit

Permalink
Remove an errant use of static, improve some generated comments, and …
Browse files Browse the repository at this point in the history
…update the version
  • Loading branch information
kevinsea committed Dec 13, 2015
1 parent a229a45 commit 15cb201
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions DesiredStateGenerator/Common/CodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Text;
using DesiredState.IIS;
using DesiredState.Windows;
using Microsoft.Web.Administration;

namespace DesiredState.Common
{
Expand Down Expand Up @@ -56,10 +55,10 @@ public string GenerateConfig(Options options)

sb.AppendLine( "cls\n");

sb.AppendLine( "Compile this DSC down to an .MOF: An .mof file will be placed in the specified directory.");
sb.AppendLine( "# Compile this DSC down to an .MOF: An .mof file will be placed in the specified directory:");
sb.AppendLine( "IIS_DSC -OutputPath \"c:\\my_iis_dsc_dir\"\n");

sb.AppendLine( "# Apply the DSC. ALL .mof's in a folder will be executed!");
sb.AppendLine( "# Apply the DSC. ALL .mof's in a folder will be executed!:");
sb.AppendLine( "Start-DscConfiguration -Path \"c:\\my_iis_dsc_dir\" -Wait -Debug -ErrorAction Stop -Force -Verbose # this will apply the DSC");

return sb.ToString();
Expand Down
6 changes: 3 additions & 3 deletions DesiredStateGenerator/IIS/IISCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public string GenerateCode(IisPoolAndSitesOptions options)
string baseIndent = CodeGenHelpers.GetIndentString(2);
string code;

sb.AppendLine(baseIndent + "# Note this code does not detect server level IIS overrides.");
sb.AppendLine(baseIndent + "# See the wiki for information about detecting server level changes.\n");
sb.AppendLine(baseIndent + "# Note this code does not detect server level IIS overrides (it assumes the IIS level settings");
sb.AppendLine(baseIndent + "# have not been overriden). See the wiki for information about detecting server level changes.\n");

if (options.IisPoolAndSitesGenerationMode == IisPoolAndSitesGenerationMode.ConfigFileOrder)
{
Expand Down Expand Up @@ -90,7 +90,7 @@ private string GenerateSites(List<SiteDesiredState> siteList)
return sb.ToString();
}

private static string GetSiteHeader(SiteDesiredState site)
private string GetSiteHeader(SiteDesiredState site)
{
StringBuilder sb = new StringBuilder();

Expand Down
4 changes: 2 additions & 2 deletions DesiredStateGenerator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]

0 comments on commit 15cb201

Please sign in to comment.