diff options
Diffstat (limited to 'lib/chef/resource/apt_preference.rb')
-rw-r--r-- | lib/chef/resource/apt_preference.rb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/chef/resource/apt_preference.rb b/lib/chef/resource/apt_preference.rb index 442d85a78a..42e2c66aef 100644 --- a/lib/chef/resource/apt_preference.rb +++ b/lib/chef/resource/apt_preference.rb @@ -30,10 +30,21 @@ class Chef " sources are prioritized during installation." introduced "13.3" - property :package_name, String, name_property: true, regex: [/^([a-z]|[A-Z]|[0-9]|_|-|\.|\*|\+)+$/] - property :glob, String - property :pin, String, required: true - property :pin_priority, [String, Integer], required: true + property :package_name, String, + name_property: true, + description: "The name of the package.", + regex: [/^([a-z]|[A-Z]|[0-9]|_|-|\.|\*|\+)+$/] + + property :glob, String, + description: "Pin by glob() expression or with regular expressions surrounded by /." + + property :pin, String, + description: "The package version or repository to pin.", + required: true + + property :pin_priority, [String, Integer], + description: "Sets the Pin-Priority for a package.", + required: true default_action :add allowed_actions :add, :remove |