Permalink
Browse files

Issue #263

  • Loading branch information...
AdamNaj committed Jan 24, 2015
1 parent c761c40 commit bd459694e86fa52d1384694c9bc673c86e1d82f2
Showing with 3 additions and 16 deletions.
  1. +3 −16 Commandlets/UpdatePackages/ExportUpdatePackageCommand.cs
@@ -14,13 +14,11 @@ namespace Cognifide.PowerShell.Commandlets.UpdatePackages
[Cmdlet(VerbsData.Export, "UpdatePackage")]
public class ExportUpdatePackageCommand : BasePackageCommand
{
private List<ICommand> commands;
[Parameter(Position = 0)]
public string Name { get; set; }
[Parameter(Position = 1, Mandatory = true)]
public ICommand Command { get; set; }
public List<ICommand> CommandList { get; set; }
[Parameter(Position = 0)]
public string Path { get; set; }
@@ -34,13 +32,7 @@ public class ExportUpdatePackageCommand : BasePackageCommand
[Parameter]
public string Tag { get; set; }
protected override void BeginProcessing()
{
commands = new List<ICommand>();
base.BeginProcessing();
}
protected override void EndProcessing()
protected override void ProcessRecord()
{
// Use default logger
ILog log = LogManager.GetLogger("root");
@@ -50,7 +42,7 @@ protected override void EndProcessing()
() =>
{
var diff = new DiffInfo(
commands,
CommandList,
string.IsNullOrEmpty(Name) ? "Sitecore PowerShell Extensions Generated Update Package" : Name,
Readme,
Tag);
@@ -69,10 +61,5 @@ protected override void EndProcessing()
PackageGenerator.GeneratePackage(diff, string.Empty, fileName);
});
}
protected override void ProcessRecord()
{
commands.Add(Command);
}
}
}

0 comments on commit bd45969

Please sign in to comment.