diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-05-29 10:17:46 -0700 |
---|---|---|
committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-05-29 16:55:50 -0400 |
commit | 8e17c3a65a1fde28778bc3148227e3d11bb91304 (patch) | |
tree | 6039b4f5b32276888086012378a079ee46977332 | |
parent | 0fc76389279df0b28be5d0c3ed95c4c378e79d8d (diff) | |
download | chef-8e17c3a65a1fde28778bc3148227e3d11bb91304.tar.gz |
include powershell_out in DSL places
-rw-r--r-- | lib/chef/dsl/recipe.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider.rb | 2 | ||||
-rw-r--r-- | lib/chef/resource.rb | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/dsl/recipe.rb b/lib/chef/dsl/recipe.rb index 97f5088b5d..77646376ba 100644 --- a/lib/chef/dsl/recipe.rb +++ b/lib/chef/dsl/recipe.rb @@ -21,6 +21,7 @@ require 'chef/mixin/convert_to_class_name' require 'chef/exceptions' require 'chef/resource_builder' require 'chef/mixin/shell_out' +require 'chef/mixin/powershell_out' require 'chef/dsl/resources' require 'chef/dsl/definitions' @@ -33,6 +34,7 @@ class Chef module Recipe include Chef::Mixin::ShellOut + include Chef::Mixin::PowershellOut # method_missing must live for backcompat purposes until Chef 13. def method_missing(method_symbol, *args, &block) diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 99d09d0507..42347a230e 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -22,6 +22,7 @@ require 'chef/mixin/convert_to_class_name' require 'chef/mixin/enforce_ownership_and_permissions' require 'chef/mixin/why_run' require 'chef/mixin/shell_out' +require 'chef/mixin/powershell_out' require 'chef/mixin/provides' require 'chef/platform/service_helpers' require 'chef/node_map' @@ -30,6 +31,7 @@ class Chef class Provider include Chef::Mixin::WhyRun include Chef::Mixin::ShellOut + include Chef::Mixin::PowershellOut extend Chef::Mixin::Provides # supports the given resource and action (late binding) diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 757cd442af..18759b29f7 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -38,6 +38,7 @@ require 'chef/resource_resolver' require 'chef/mixin/deprecation' require 'chef/mixin/provides' require 'chef/mixin/shell_out' +require 'chef/mixin/powershell_out' class Chef class Resource @@ -54,6 +55,7 @@ class Chef # This lets user code do things like `not_if { shell_out!("command") }` include Chef::Mixin::ShellOut + include Chef::Mixin::PowershellOut # # The node the current Chef run is using. |