diff options
author | Tim Smith <tsmith@chef.io> | 2017-09-14 18:58:33 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-09-14 20:15:22 -0700 |
commit | ab50e36aa0f66a072ebe92cc85a2fcc8bced40e8 (patch) | |
tree | b1fb39c438b4727a2f2b596d16f7efa0349834fe /lib/chef | |
parent | 114c7786670c180c15cfc152432a7df1c0b1fc52 (diff) | |
download | chef-ab50e36aa0f66a072ebe92cc85a2fcc8bced40e8.tar.gz |
Remove the usage of an array for the platform_familyapt_resources
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/provider/apt_preference.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/apt_repository.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/apt_update.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/apt_package.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/apt_preference.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/apt_repository.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource/apt_update.rb | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/provider/apt_preference.rb b/lib/chef/provider/apt_preference.rb index 5e19c33ce7..ff4ea02ff0 100644 --- a/lib/chef/provider/apt_preference.rb +++ b/lib/chef/provider/apt_preference.rb @@ -24,7 +24,7 @@ require "chef/log" class Chef class Provider class AptPreference < Chef::Provider - provides :apt_preference, os: "linux", platform_family: [ "debian" ] + provides :apt_preference, os: "linux", platform_family: "debian" APT_PREFERENCE_DIR = "/etc/apt/preferences.d".freeze diff --git a/lib/chef/provider/apt_repository.rb b/lib/chef/provider/apt_repository.rb index 6ef79a6902..2d86a6fce4 100644 --- a/lib/chef/provider/apt_repository.rb +++ b/lib/chef/provider/apt_repository.rb @@ -27,7 +27,7 @@ class Chef class AptRepository < Chef::Provider include Chef::Mixin::ShellOut - provides :apt_repository, os: "linux", platform_family: [ "debian" ] + provides :apt_repository, os: "linux", platform_family: "debian" LIST_APT_KEYS = "apt-key list".freeze LIST_APT_KEY_FINGERPRINTS = "apt-key adv --list-public-keys --with-fingerprint --with-colons".freeze diff --git a/lib/chef/provider/apt_update.rb b/lib/chef/provider/apt_update.rb index b0a04a95e4..bfd9603e4e 100644 --- a/lib/chef/provider/apt_update.rb +++ b/lib/chef/provider/apt_update.rb @@ -23,7 +23,7 @@ require "chef/dsl/declare_resource" class Chef class Provider class AptUpdate < Chef::Provider - provides :apt_update, os: "linux", platform_family: [ "debian" ] + provides :apt_update, os: "linux", platform_family: "debian" APT_CONF_DIR = "/etc/apt/apt.conf.d" STAMP_DIR = "/var/lib/apt/periodic" diff --git a/lib/chef/resource/apt_package.rb b/lib/chef/resource/apt_package.rb index 069fefcb2b..8397f84c71 100644 --- a/lib/chef/resource/apt_package.rb +++ b/lib/chef/resource/apt_package.rb @@ -23,7 +23,7 @@ class Chef class Resource class AptPackage < Chef::Resource::Package resource_name :apt_package - provides :package, os: "linux", platform_family: [ "debian" ] + provides :package, os: "linux", platform_family: "debian" property :default_release, String, desired_state: false diff --git a/lib/chef/resource/apt_preference.rb b/lib/chef/resource/apt_preference.rb index b610f538a6..b0f56d983e 100644 --- a/lib/chef/resource/apt_preference.rb +++ b/lib/chef/resource/apt_preference.rb @@ -22,7 +22,7 @@ class Chef class Resource class AptPreference < Chef::Resource resource_name :apt_preference - provides :apt_preference, os: "linux", platform_family: [ "debian" ] + provides :apt_preference, os: "linux", platform_family: "debian" property :package_name, String, name_property: true, regex: [/^([a-z]|[A-Z]|[0-9]|_|-|\.|\*|\+)+$/] property :glob, String diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb index 0b2388d96b..f16b3088a6 100644 --- a/lib/chef/resource/apt_repository.rb +++ b/lib/chef/resource/apt_repository.rb @@ -22,7 +22,7 @@ class Chef class Resource class AptRepository < Chef::Resource resource_name :apt_repository - provides :apt_repository, os: "linux", platform_family: [ "debian" ] + provides :apt_repository, os: "linux", platform_family: "debian" property :repo_name, String, name_property: true property :uri, String diff --git a/lib/chef/resource/apt_update.rb b/lib/chef/resource/apt_update.rb index b985957529..39ebc8662c 100644 --- a/lib/chef/resource/apt_update.rb +++ b/lib/chef/resource/apt_update.rb @@ -22,7 +22,7 @@ class Chef class Resource class AptUpdate < Chef::Resource resource_name :apt_update - provides :apt_update, os: "linux", platform_family: [ "debian" ] + provides :apt_update, os: "linux", platform_family: "debian" # allow bare apt_update with no name property :name, String, default: "" |