Skip to content
Snippets Groups Projects
Unverified Commit de4016e0 authored by Dominyk Tiller's avatar Dominyk Tiller
Browse files

utils: add with_custom_locale helper

parent f10370bd
No related branches found
No related tags found
No related merge requests found
......@@ -337,6 +337,14 @@ ensure
ENV["PATH"] = old_path
end
def with_custom_locale(locale)
old_locale = ENV["LC_ALL"]
ENV["LC_ALL"] = locale
yield
ensure
ENV["LC_ALL"] = old_locale
end
def run_as_not_developer(&_block)
old = ENV.delete "HOMEBREW_DEVELOPER"
yield
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment