Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't eval the action_class #146

Merged
merged 1 commit into from
May 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/chef/resource/chef_acl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def remove_rights(*values)
end
end

action_class.class_eval do
action_class do
# Update the ACL if necessary.
def create_acl(path)
changed = false
Expand Down
2 changes: 1 addition & 1 deletion lib/chef/resource/chef_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def after(&block)
delete_actor
end

action_class.class_eval do
action_class do
def actor_type
"client"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/chef/resource/chef_container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ChefContainer < Cheffish::BaseResource
end
end

action_class.class_eval do
action_class do
def load_current_resource
@current_exists = rest.get("containers/#{new_resource.chef_container_name}")
rescue Net::HTTPServerException => e
Expand Down