Skip to content

Commit

Permalink
Use conventional resources in library
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhughes committed May 6, 2021
1 parent db62e25 commit 76fc5be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def rulefile_resource_exist?

def rulefile_resource_create
with_run_context(:root) do
edit_resource(:template, new_resource.config_file) do |new_resource|
template new_resource.config_file do |new_resource|
owner new_resource.owner
group new_resource.group
mode new_resource.mode
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
source_url 'https://github.com/chef-cookbooks/iptables'
issues_url 'https://github.com/chef-cookbooks/iptables/issues'
chef_version '>= 14'
version '7.1.0'
version '8.0.0'

%w(redhat centos debian ubuntu amazon scientific oracle amazon zlinux).each do |os|
supports os
Expand Down

0 comments on commit 76fc5be

Please sign in to comment.