summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-09-14 18:58:33 -0700
committerTim Smith <tsmith@chef.io>2017-09-14 20:15:22 -0700
commitab50e36aa0f66a072ebe92cc85a2fcc8bced40e8 (patch)
treeb1fb39c438b4727a2f2b596d16f7efa0349834fe /lib/chef/resource
parent114c7786670c180c15cfc152432a7df1c0b1fc52 (diff)
downloadchef-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/resource')
-rw-r--r--lib/chef/resource/apt_package.rb2
-rw-r--r--lib/chef/resource/apt_preference.rb2
-rw-r--r--lib/chef/resource/apt_repository.rb2
-rw-r--r--lib/chef/resource/apt_update.rb2
4 files changed, 4 insertions, 4 deletions
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: ""