Commit 1a96e903 authored by Xorima Bot's avatar Xorima Bot
Browse files

Cookstyle 6.13.3 Fixes



Issues found and resolved with: libraries/provider.rb

 - 13:7 refactor: ChefModernize/ActionMethodInResource - Use the custom resource language's action :my_action blocks instead of creating actions with methods.
 - 17:7 refactor: ChefModernize/ActionMethodInResource - Use the custom resource language's action :my_action blocks instead of creating actions with methods.
Signed-off-by: default avatarXorima Bot <xorimabot@avon-lea.co.uk>
parent 79efb406
......@@ -2,6 +2,11 @@
This file is used to list changes made in each version of the dpkg_autostart cookbook.
## Unreleased
- resolved cookstyle error: libraries/provider.rb:13:7 refactor: `ChefModernize/ActionMethodInResource`
- resolved cookstyle error: libraries/provider.rb:17:7 refactor: `ChefModernize/ActionMethodInResource`
## 0.4.0 (2020-06-18)
- Restore Chef Infra Client < 16 compatibility
......
......@@ -10,11 +10,11 @@ class Chef
def load_current_resource
end
def action_run
action :run do
Chef::Log.debug 'DpkgAutostart: Compat method. Action does nothing.'
end
def action_create
action :create do
template = Chef::Resource::Template.new('dpkg_autostart_file', run_context)
template.cookbook 'dpkg_autostart'
template.source 'policy-rc.d.erb'
......
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