summaryrefslogtreecommitdiff
path: root/lib/chef/resource/powershell_script.rb
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2014-03-29 09:49:59 -0700
committerAdam Edwards <adamed@opscode.com>2014-03-29 09:49:59 -0700
commit43b3f4c0a48a5f6a5c242bb649f72239197b0097 (patch)
tree268112dd378aa7234f474e46efee1a97bcfaf12e /lib/chef/resource/powershell_script.rb
parent7d4f5e04ce9851dce6f97c72ffee8b2cca2b58bc (diff)
downloadchef-43b3f4c0a48a5f6a5c242bb649f72239197b0097.tar.gz
CR feedback: fix misleading method name for setting inheritance, validate class inheritance prior to instantiation
Diffstat (limited to 'lib/chef/resource/powershell_script.rb')
-rw-r--r--lib/chef/resource/powershell_script.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/powershell_script.rb b/lib/chef/resource/powershell_script.rb
index f053d0b2aa..1b47e7411a 100644
--- a/lib/chef/resource/powershell_script.rb
+++ b/lib/chef/resource/powershell_script.rb
@@ -21,7 +21,7 @@ class Chef
class Resource
class PowershellScript < Chef::Resource::WindowsScript
- add_guard_inherited_attributes(:architecture)
+ set_guard_inherited_attributes(:architecture)
def initialize(name, run_context=nil)
super(name, run_context, :powershell_script, "powershell.exe")