summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-03-02 10:16:49 -0800
committerGitHub <noreply@github.com>2020-03-02 10:16:49 -0800
commit4e2b7674eb1920f332f31e9f5abe944aec0d323b (patch)
tree6cfba16b3c1ada6929c4a9968a73fc16814a8cf0
parentcb6d978d1a9ace1cb648822f943596dc2cea38aa (diff)
parent378b9b5aa393f8cb40d860e20b8c0b0c885afc78 (diff)
downloadchef-4e2b7674eb1920f332f31e9f5abe944aec0d323b.tar.gz
Merge pull request #9425 from chef/powershell_include
Remove the mixin powershell includes from resources
-rw-r--r--lib/chef/provider/package/chocolatey.rb2
-rw-r--r--lib/chef/provider/windows_task.rb2
-rw-r--r--lib/chef/resource/windows_ad_join.rb3
-rw-r--r--lib/chef/resource/windows_feature_powershell.rb3
4 files changed, 0 insertions, 10 deletions
diff --git a/lib/chef/provider/package/chocolatey.rb b/lib/chef/provider/package/chocolatey.rb
index fe90650846..32b1c9e256 100644
--- a/lib/chef/provider/package/chocolatey.rb
+++ b/lib/chef/provider/package/chocolatey.rb
@@ -17,13 +17,11 @@
require_relative "../package"
require_relative "../../resource/chocolatey_package"
-require_relative "../../mixin/powershell_out"
class Chef
class Provider
class Package
class Chocolatey < Chef::Provider::Package
- include Chef::Mixin::PowershellOut
provides :chocolatey_package
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb
index 90e0f3e9de..4e16cccc9c 100644
--- a/lib/chef/provider/windows_task.rb
+++ b/lib/chef/provider/windows_task.rb
@@ -19,7 +19,6 @@
require_relative "../mixin/shell_out"
require "rexml/document" unless defined?(REXML::Document)
require "iso8601" if ChefUtils.windows?
-require_relative "../mixin/powershell_out"
require_relative "../provider"
require_relative "../util/path_helper"
require "win32/taskscheduler" if ChefUtils.windows?
@@ -28,7 +27,6 @@ class Chef
class Provider
class WindowsTask < Chef::Provider
include Chef::Mixin::ShellOut
- include Chef::Mixin::PowershellOut
if ChefUtils.windows?
include Win32
diff --git a/lib/chef/resource/windows_ad_join.rb b/lib/chef/resource/windows_ad_join.rb
index b807abaa93..84f7fa00fb 100644
--- a/lib/chef/resource/windows_ad_join.rb
+++ b/lib/chef/resource/windows_ad_join.rb
@@ -16,7 +16,6 @@
#
require_relative "../resource"
-require_relative "../mixin/powershell_out"
require_relative "../dist"
class Chef
@@ -25,8 +24,6 @@ class Chef
resource_name :windows_ad_join
provides :windows_ad_join
- include Chef::Mixin::PowershellOut
-
description "Use the windows_ad_join resource to join a Windows Active Directory domain."
introduced "14.0"
diff --git a/lib/chef/resource/windows_feature_powershell.rb b/lib/chef/resource/windows_feature_powershell.rb
index 8e35e9ddcc..b390973851 100644
--- a/lib/chef/resource/windows_feature_powershell.rb
+++ b/lib/chef/resource/windows_feature_powershell.rb
@@ -16,7 +16,6 @@
# limitations under the License.
#
-require_relative "../mixin/powershell_out"
require_relative "../json_compat"
require_relative "../resource"
require_relative "../platform/query_helpers"
@@ -59,8 +58,6 @@ class Chef
x.map(&:downcase)
end
- include Chef::Mixin::PowershellOut
-
action :install do
reload_cached_powershell_data unless node["powershell_features_cache"]
fail_if_unavailable # fail if the features don't exist