summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-01-21 15:46:02 +0000
committerGitHub <noreply@github.com>2018-01-21 15:46:02 +0000
commit2fef9c4839205903acb8983a8487625a07e351b1 (patch)
treec0f8b11c98c6f1e0d774429e1c2774fb1a7348d4 /lib/chef/provider.rb
parentd767381b3f2eed6893fa0405c0af9b5466c18099 (diff)
parent746562d6358c27b838c95ea27b2a2bd82c03cefe (diff)
downloadchef-2fef9c4839205903acb8983a8487625a07e351b1.tar.gz
Merge pull request #6749 from chef/lcg/rubocop-0.52.1
prepping for rubocop 0.52.1
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb
index 9e9013b24e..327bf52a13 100644
--- a/lib/chef/provider.rb
+++ b/lib/chef/provider.rb
@@ -1,7 +1,7 @@
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Christopher Walters (<cw@chef.io>)
-# Copyright:: Copyright 2008-2016, 2009-2017, Chef Software Inc.
+# Copyright:: Copyright 2008-2016, 2009-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -38,7 +38,6 @@ class Chef
attr_accessor :run_context
attr_reader :recipe_name
- attr_reader :cookbook_name
include Chef::Mixin::WhyRun
extend Chef::Mixin::Provides
@@ -331,7 +330,7 @@ class Chef
define_singleton_method(:inspect) { to_s }
# Add a delegator for each explicit property that will get the *current* value
# of the property by default instead of the *actual* value.
- resource.class.properties.each do |name, property|
+ resource.class.properties.each_key do |name|
class_eval(<<-EOM, __FILE__, __LINE__)
def #{name}(*args, &block)
# If no arguments were passed, we process "get" by defaulting