class RuboCop::Cop::Chef::Correctness::ResourceSetsInternalProperties
Chef
Infra Client uses properties in several resources to track state. These should not be set in recipes as they break the internal workings of the Chef
Infra Client
@example
### incorrect service 'foo' do running true action [:start, :enable] end ### correct service 'foo' do action [:start, :enable] end
Constants
- MSG
Public Instance Methods
Source
# File lib/rubocop/cop/chef/correctness/resource_sets_internal_properties.rb, line 42 def on_block(node) match_property_in_resource?(:service, 'running', node) do |prop| add_offense(prop, severity: :refactor) end end