Unverified Commit 1ea6dff9 authored by Tasdik Rahman's avatar Tasdik Rahman Committed by GitHub
Browse files

bugfix: Refactor provider to revert to method syntax (#25)

* bugfix: Refactor provider to revert to method syntax

Fixes regression introduced in v0.4.1

* docs: Add changelog for 0.4.2

* Update CHANGELOG.md
Co-authored-by: default avatarJason Field <4923914+Xorima@users.noreply.github.com>
parent 4fda0255
......@@ -2,6 +2,10 @@
This file is used to list changes made in each version of the dpkg_autostart cookbook.
## Unreleased
- Fix regression introduced in 0.4.1, of undefined method `action` being received
## 0.4.1 (2020-09-16)
- resolved cookstyle error: libraries/provider.rb:13:7 refactor: `ChefModernize/ActionMethodInResource`
......@@ -10,11 +10,11 @@ class Chef
def load_current_resource
action :run do
def action_run
Chef::Log.debug 'DpkgAutostart: Compat method. Action does nothing.'
action :create do
def action_create
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