Skip to content

Commit 14585f7

Browse files
committed
set proxy server
1 parent f744c42 commit 14585f7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/boxr.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ module Boxr
7272
BOX_CLIENT.transparent_gzip_decompression = true
7373
#BOX_CLIENT.ssl_config.add_trust_ca("/Users/cburnette/code/ssh-keys/dev_root_ca.pem")
7474

75+
#example)proxy_server is 'http://myproxy:8080'
76+
def self.set_proxy_server(proxy_server)
77+
BOX_CLIENT.proxy = proxy_server
78+
end
79+
7580
def self.turn_on_debugging(device=STDOUT)
7681
BOX_CLIENT.debug_dev = device
7782
BOX_CLIENT.transparent_gzip_decompression = false

0 commit comments

Comments
 (0)