diff options
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) |