GitLab upgraded to 13.9.1-ee.0 - changelog: https://gitlab.com/gitlab-org/gitlab/blob/master/CHANGELOG-EE.md

Commit 03229304 authored by Xorima Bot's avatar Xorima Bot

Cookstyle 7.2.1 Fixes

Issues found and resolved with: libraries/provider.rb

 - 13:7 refactor: Chef/Modernize/ActionMethodInResource - Use the custom resource language's action :my_action blocks instead of creating actions with methods.
 - 17:7 refactor: Chef/Modernize/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 5cffd44f
......@@ -4,6 +4,8 @@ This file is used to list changes made in each version of the dpkg_autostart coo
## Unreleased
- resolved cookstyle error: libraries/provider.rb:13:7 refactor: `Chef/Modernize/ActionMethodInResource`
- resolved cookstyle error: libraries/provider.rb:17:7 refactor: `Chef/Modernize/ActionMethodInResource`
## 0.4.2 - *2020-11-27*
- Fix regression introduced in 0.4.1, of undefined method `action` being received
......
......@@ -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