summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-05-25 14:30:30 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-05-25 14:30:30 -0700
commitfc98ec2b65e5a9a236f7374b831dcee6ab2100bb (patch)
treedb5b58024b2effd64a63b4f70b72f26ff56616b6
parent9bb4809fb7dc7b37c5334e9e3c284e182a570438 (diff)
downloadchef-lcg/shell-out-internal-flag.tar.gz
add description + make rubocop less annoyinglcg/shell-out-internal-flag
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--.rubocop.yml3
-rw-r--r--lib/chef/resource/execute.rb3
2 files changed, 5 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 9730861155..c3eba7db55 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -29,3 +29,6 @@ Lint/IneffectiveAccessModifier:
Enabled: false
Lint/ShadowedException:
Enabled: false
+Layout/AlignHash:
+ Enabled: true
+ EnforcedLastArgumentHashStyle: ignore_implicit
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb
index 07daa1727f..f9165ee487 100644
--- a/lib/chef/resource/execute.rb
+++ b/lib/chef/resource/execute.rb
@@ -65,7 +65,8 @@ class Chef
property :group, [ String, Integer ]
property :live_stream, [ TrueClass, FalseClass ], default: false
# internal defaults to `false` so that the command execution more exactly matches what the user gets on the command line without magic
- property :internal, [ TrueClass, FalseClass ], desired_state: false, default: false
+ property :internal, [ TrueClass, FalseClass ], desired_state: false, default: false,
+ description: "When true this enables ENV magic to add path_sanity to the PATH and force the locale to English+UTF-8 for parsing output"
property :returns, [ Integer, Array ], default: 0
property :timeout, [ Integer, Float ]
property :user, [ String, Integer ]