diff options
Diffstat (limited to 'lib/chef/resource/apt_repository.rb')
-rw-r--r-- | lib/chef/resource/apt_repository.rb | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb index a182562dc0..c70631253b 100644 --- a/lib/chef/resource/apt_repository.rb +++ b/lib/chef/resource/apt_repository.rb @@ -33,51 +33,51 @@ class Chef # defaults, but since we allowed users to pass nil here we need to continue # to allow that so don't refactor this however tempting it is property :repo_name, String, - regex: [/^[^\/]+$/], - description: "An optional property to set the repository name if it differs from the resource block's name. The value of this setting must not contain spaces.", - validation_message: "repo_name property cannot contain a forward slash '/'", - introduced: "14.1", name_property: true + regex: [/^[^\/]+$/], + description: "An optional property to set the repository name if it differs from the resource block's name. The value of this setting must not contain spaces.", + validation_message: "repo_name property cannot contain a forward slash '/'", + introduced: "14.1", name_property: true property :uri, String, - description: "The base of the Debian distribution." + description: "The base of the Debian distribution." property :distribution, [ String, nil, FalseClass ], - description: "Usually a distribution's codename, such as trusty, xenial or bionic. Default value: the codename of the node's distro.", - default: lazy { node["lsb"]["codename"] }, default_description: "The LSB codename of the host such as 'bionic'." + description: "Usually a distribution's codename, such as trusty, xenial or bionic. Default value: the codename of the node's distro.", + default: lazy { node["lsb"]["codename"] }, default_description: "The LSB codename of the host such as 'bionic'." property :components, Array, - description: "Package groupings, such as 'main' and 'stable'.", - default: lazy { [] } + description: "Package groupings, such as 'main' and 'stable'.", + default: lazy { [] } property :arch, [String, nil, FalseClass], - description: "Constrain packages to a particular CPU architecture such as 'i386' or 'amd64'." + description: "Constrain packages to a particular CPU architecture such as 'i386' or 'amd64'." property :trusted, [TrueClass, FalseClass], - description: "Determines whether you should treat all packages from this repository as authenticated regardless of signature.", - default: false + description: "Determines whether you should treat all packages from this repository as authenticated regardless of signature.", + default: false property :deb_src, [TrueClass, FalseClass], - description: "Determines whether or not to add the repository as a source repo as well.", - default: false + description: "Determines whether or not to add the repository as a source repo as well.", + default: false property :keyserver, [String, nil, FalseClass], - description: "The GPG keyserver where the key for the repo should be retrieved.", - default: "keyserver.ubuntu.com" + description: "The GPG keyserver where the key for the repo should be retrieved.", + default: "keyserver.ubuntu.com" property :key, [String, Array, nil, FalseClass], - description: "If a keyserver is provided, this is assumed to be the fingerprint; otherwise it can be either the URI of GPG key for the repo, or a cookbook_file.", - default: lazy { [] }, coerce: proc { |x| x ? Array(x) : x } + description: "If a keyserver is provided, this is assumed to be the fingerprint; otherwise it can be either the URI of GPG key for the repo, or a cookbook_file.", + default: lazy { [] }, coerce: proc { |x| x ? Array(x) : x } property :key_proxy, [String, nil, FalseClass], - description: "If set, a specified proxy is passed to GPG via http-proxy=." + description: "If set, a specified proxy is passed to GPG via http-proxy=." property :cookbook, [String, nil, FalseClass], - description: "If key should be a cookbook_file, specify a cookbook where the key is located for files/default. Default value is nil, so it will use the cookbook where the resource is used.", - desired_state: false + description: "If key should be a cookbook_file, specify a cookbook where the key is located for files/default. Default value is nil, so it will use the cookbook where the resource is used.", + desired_state: false property :cache_rebuild, [TrueClass, FalseClass], - description: "Determines whether to rebuild the APT package cache.", - default: true, desired_state: false + description: "Determines whether to rebuild the APT package cache.", + default: true, desired_state: false default_action :add allowed_actions :add, :remove |