Skip to content

Commit

Permalink
(chocolateyGH-10) set ChocolateyConfig serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Feb 1, 2015
1 parent 5302f5b commit c3a0080
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace chocolatey.infrastructure.app.configuration
/// <summary>
/// The chocolatey configuration.
/// </summary>
[Serializable]
public class ChocolateyConfiguration
{
public ChocolateyConfiguration()
Expand Down Expand Up @@ -190,6 +191,7 @@ private void output_tostring(StringBuilder propertyValues, IEnumerable<PropertyI
public PinCommandConfiguration PinCommand { get; private set; }
}

[Serializable]
public sealed class InformationCommandConfiguration
{
// application set variables
Expand All @@ -201,6 +203,7 @@ public sealed class InformationCommandConfiguration
public bool IsInteractive { get; set; }
}

[Serializable]
public sealed class FeaturesConfiguration
{
public bool AutoUninstaller { get; set; }
Expand All @@ -210,13 +213,15 @@ public sealed class FeaturesConfiguration

//todo: retrofit other command configs this way

[Serializable]
public sealed class ListCommandConfiguration
{
// list
public bool LocalOnly { get; set; }
public bool IncludeRegistryPrograms { get; set; }
}

[Serializable]
public sealed class NewCommandConfiguration
{
public NewCommandConfiguration()
Expand All @@ -229,6 +234,7 @@ public NewCommandConfiguration()
public IDictionary<string, string> TemplateProperties { get; private set; }
}

[Serializable]
public sealed class SourcesCommandConfiguration
{
public string Name { get; set; }
Expand All @@ -237,17 +243,20 @@ public sealed class SourcesCommandConfiguration
public string Password { get; set; }
}

[Serializable]
public sealed class PinCommandConfiguration
{
public string Name { get; set; }
public PinCommandType Command { get; set; }
}

[Serializable]
public sealed class ApiKeyCommandConfiguration
{
public string Key { get; set; }
}

[Serializable]
public sealed class PushCommandConfiguration
{
public string Key { get; set; }
Expand Down

0 comments on commit c3a0080

Please sign in to comment.