diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-20 15:49:47 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-20 15:49:47 -0800 |
commit | 2628f2dd6232856af02b25c680d9a3e3e1220be5 (patch) | |
tree | 93b149c804f34e217136086fc5d60c10724a5696 /lib/chef/mixin/shell_out.rb | |
parent | 13fe34683ae307e563be4acce004b2681b302ce4 (diff) | |
download | chef-2628f2dd6232856af02b25c680d9a3e3e1220be5.tar.gz |
remove run_command from groupadd
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/mixin/shell_out.rb')
-rw-r--r-- | lib/chef/mixin/shell_out.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb index cc2bf085e9..d341e3d1ec 100644 --- a/lib/chef/mixin/shell_out.rb +++ b/lib/chef/mixin/shell_out.rb @@ -85,6 +85,7 @@ class Chef # @param args [String] variable number of string arguments # @return [String] nicely concatenated string or empty string def a_to_s(*args) + # FIXME: this should be cleaned up and deprecated clean_array(*args).join(" ") end @@ -108,6 +109,14 @@ class Chef args.flatten.reject { |i| i.nil? || i == "" }.map(&:to_s) end + def shell_out_compact(*args) + shell_out(*clean_array(*args)) + end + + def shell_out_compact!(*args) + shell_out!(*clean_array(*args)) + end + private def shell_out_command(*command_args) |