Method: Termtter::API.proxy_string
- Defined in:
- lib/termtter/api.rb
.proxy_string ⇒ Object
119 120 121 122 123 124 125 126 |
# File 'lib/termtter/api.rb', line 119 def proxy_string return unless config.proxy.host if config.proxy.user_name && config.proxy.password "http://#{config.proxy.user_name}:#{config.proxy.password}@#{config.proxy.host}:#{config.proxy.port}" else "http://#{config.proxy.host}:#{config.proxy.port}" end end |