Module: ProxyPacRb::Cli::Shared
- Included in:
- CompressProxyPac, FindProxy, InitProxyPac, LintProxyPac
- Defined in:
- lib/proxy_pac_rb/cli/shared.rb
Overview
Shared methods for all cli commands
Instance Method Summary collapse
-
#enable_debug_mode ⇒ Object
Enable debug mode.
-
#remove_proxy_environment_variables ⇒ Object
Remove proxy variables.
Instance Method Details
#enable_debug_mode ⇒ Object
Enable debug mode
8 9 10 |
# File 'lib/proxy_pac_rb/cli/shared.rb', line 8 def enable_debug_mode ProxyPacRb.enable_debug_mode if [:debug_mode] == true end |
#remove_proxy_environment_variables ⇒ Object
Remove proxy variables
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/proxy_pac_rb/cli/shared.rb', line 13 def remove_proxy_environment_variables %w( http_proxy https_proxy HTTP_PROXY HTTPS_PROXY ).each do |v| ENV.delete(v) end end |