Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (46 sloc) 1.78 KB
using System;
using System.ComponentModel;
using Inedo.Documentation;
using Inedo.Extensibility;
using Inedo.Extensibility.Configurations;
using Inedo.Extensions.Chocolatey.SuggestionProviders;
using Inedo.Serialization;
using Inedo.Web;
namespace Inedo.Extensions.Chocolatey.Configurations
{
[Serializable]
[DisplayName("Chocolatey Package")]
public sealed class ChocolateyPackageConfiguration : PersistedConfiguration, IExistential
{
[Required]
[Persistent]
[ConfigurationKey]
[ScriptAlias("Name")]
[DisplayName("Package name")]
[SuggestableValue(typeof(PackageNameSuggestionProvider))]
public string PackageName { get; set; }
[Persistent]
[ScriptAlias("Version")]
[Description("The version number of the package to install. Leave blank for the latest version.")]
[SuggestableValue(typeof(VersionSuggestionProvider))]
public string Version { get; set; }
[Persistent]
public bool IsLatestVersion { get; set; }
[Persistent]
[ScriptAlias("Exists")]
[DefaultValue(true)]
public bool Exists { get; set; } = true;
[Persistent]
[ScriptAlias("Source")]
[DefaultValue("https://chocolatey.org/api/v2")]
[SuggestableValue(typeof(SpecialSourceSuggestionProvider))]
[IgnoreConfigurationDrift]
public string Source { get; set; } = "https://chocolatey.org/api/v2";
[Persistent]
[IgnoreConfigurationDrift]
[ScriptAlias("AdditionalInstallArguments")]
[DisplayName("Additional install arguments")]
[Description("Arguments supplied here are passed directly to choco when a package is installed or upgraded.")]
public string AdditionalInstallArguments { get; set; }
}
}
You can’t perform that action at this time.