lib/scout/command.rb in scout-5.3.4 vs lib/scout/command.rb in scout-5.3.5
- old
+ new
@@ -70,10 +70,20 @@
opts.on( "-n", "--name NAME", String,
"Optional name to display for this server." ) do |server_name|
options[:server_name] = server_name
end
+ opts.on("--http-proxy URL", String,
+ "Optional http proxy for non-SSL traffic." ) do |http_proxy|
+ options[:http_proxy] = http_proxy
+ end
+
+ opts.on("--https-proxy URL", String,
+ "Optional https proxy for SSL traffic." ) do |https_proxy|
+ options[:https_proxy] = https_proxy
+ end
+
opts.separator " "
opts.separator "Common Options:"
opts.separator "--------------------------------------------------------------------------"
opts.on( "-h", "--help",
"Show this message." ) do
@@ -152,9 +162,11 @@
"client_history.yaml" )
@verbose = options[:verbose] || false
@level = options[:level] || "info"
@force = options[:force] || false
@server_name = options[:server_name]
+ @http_proxy = options[:http_proxy] || ""
+ @https_proxy = options[:https_proxy] || ""
@args = args
# create config dir if necessary
@config_dir = File.dirname(history)