Method: Chef::Mixin::Command#run_command_with_systems_locale
- Defined in:
- lib/chef/mixin/command.rb
#run_command_with_systems_locale(args = {}) ⇒ Object
Call #run_command but set LC_ALL to the system’s current environment so it doesn’t get changed to C.
Parameters
args<Hash>: A number of required and optional arguments that will be handed out to #run_command
Returns
Returns the result of #run_command
140 141 142 143 144 |
# File 'lib/chef/mixin/command.rb', line 140 def run_command_with_systems_locale(args={}) args[:environment] ||= {} args[:environment]["LC_ALL"] = ENV["LC_ALL"] run_command args end |