diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-05-28 18:20:51 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-06-03 11:46:53 -0700 |
commit | 1b68d560c5de66442507d4fedd937e688f15868c (patch) | |
tree | 1430ed1e0e8d6523ba0892c0db3ae3edae7d81a4 | |
parent | b0a0e868692f9ac8f124ae640110c513d43b5324 (diff) | |
download | chef-1b68d560c5de66442507d4fedd937e688f15868c.tar.gz |
Remove and unnecesary method.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r-- | lib/chef/provider/batch.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/provider/batch.rb b/lib/chef/provider/batch.rb index 500cac7bcd..3ed55f611a 100644 --- a/lib/chef/provider/batch.rb +++ b/lib/chef/provider/batch.rb @@ -27,11 +27,7 @@ class Chef def command interpreter_path = Chef::Util::PathHelper.join(basepath, interpreter) - "\"#{interpreter_path}\" #{flags} \"#{script_file.path}\"" - end - - def flags - new_resource.flags.nil? ? "/c" : new_resource.flags + " /c" + "\"#{interpreter_path}\" #{new_resource.flags} /c \"#{script_file.path}\"" end def script_extension |