Commit 9ed827b0 authored by Tim Smith's avatar Tim Smith
Browse files

Avoid deprecation warnings post Chef 14.4



Don't load these resources on modern chef-client releases.
Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent becc87f6
......@@ -6,7 +6,7 @@
# Author:: Tim Smith <tsmith@chef.io>
#
# Copyright:: 2014-2018, Sander Botman
# Copyright:: 2018, Chef Software, Inc.
# Copyright:: 2018-2019, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -21,8 +21,9 @@
# limitations under the License.
#
chef_version_for_provides '< 14.4' if respond_to?(:chef_version_for_provides)
resource_name :cron_access
provides :cron_access
provides :cron_manage # legacy name
property :user, String, name_property: true
......
......@@ -2,7 +2,7 @@
# Cookbook:: cron
# Resource:: d
#
# Copyright:: 2008-2018, Chef Software, Inc.
# Copyright:: 2008-2019, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
......@@ -17,6 +17,9 @@
# limitations under the License.
#
chef_version_for_provides '< 14.4' if respond_to?(:chef_version_for_provides)
resource_name :cron_d
require 'shellwords'
property :cron_name, String, name_property: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment