summaryrefslogtreecommitdiff
path: root/lib/chef/dsl
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-05-07 11:46:24 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-05-07 12:04:32 -0700
commita8198cc042869b34937873db8f371cff77748f33 (patch)
tree67fddca3b3ddf7171c0b8133bad0ca2a88d2e05d /lib/chef/dsl
parent4056be318fa7aaddd46fff0f7fc15a7fd587d77b (diff)
downloadchef-a8198cc042869b34937873db8f371cff77748f33.tar.gz
Target mode code tweakslcg/target-mode-tweaks
The train_or_shell mixin should mixin its dependent mixins and require them, which removes the need to do that in the calling classes. Include TrainOrShell correctly in the Universal DSL. Few more code tweaks ("protected" is largely worthless in ruby and was always being misused here). Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r--lib/chef/dsl/universal.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/dsl/universal.rb b/lib/chef/dsl/universal.rb
index 256bc2820d..7e4843adcb 100644
--- a/lib/chef/dsl/universal.rb
+++ b/lib/chef/dsl/universal.rb
@@ -55,6 +55,7 @@ class Chef
include Chef::Mixin::PowershellExec
include Chef::Mixin::PowershellOut
include Chef::Mixin::ShellOut
+ include Chef::Mixin::TrainOrShell
extend Chef::Mixin::LazyModuleInclude
end
end