summaryrefslogtreecommitdiff
path: root/lib/chef/mixin
diff options
context:
space:
mode:
authorStuart Preston <stuart@chef.io>2018-03-05 11:00:00 -0800
committerStuart Preston <stuart@chef.io>2018-03-05 11:00:00 -0800
commit888a0407123ee0a75f9a18e1f788ce02f58440d4 (patch)
tree1b66a67bc297b52fcea2e7908d752cf711788734 /lib/chef/mixin
parent3c084d24b13067741f41b3f372829df675fa87db (diff)
downloadchef-888a0407123ee0a75f9a18e1f788ce02f58440d4.tar.gz
Addressing initial feedback from review
Signed-off-by: Stuart Preston <stuart@chef.io>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r--lib/chef/mixin/powershell_exec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/chef/mixin/powershell_exec.rb b/lib/chef/mixin/powershell_exec.rb
index b4ff7b9001..4e276b307d 100644
--- a/lib/chef/mixin/powershell_exec.rb
+++ b/lib/chef/mixin/powershell_exec.rb
@@ -28,11 +28,8 @@ class Chef
#
# @param script [String] script to run
# @return [Chef::PowerShell] output
- def powershell_exec(*command_args)
- script = command_args.first
- options = command_args.last.is_a?(Hash) ? command_args.last : nil
-
- Chef::PowerShell.new(script, options)
+ def powershell_exec(script)
+ Chef::PowerShell.new(script)
end
end
end