module NexusCli::SmartProxyActions

def enable_smart_proxy(host=nil, port=nil)

Returns:
  • (Boolean) - true if Smart Proxy is enabled, false otherwise

Parameters:
  • port=nil (Fixnum) -- an optional port to listen on for Smart Proxy
  • host=nil (String) -- an optional host to listen on for Smart Proxy
def enable_smart_proxy(host=nil, port=nil)
  params = {:enabled => true}
  params[:host] = host unless host.nil?
  params[:port] = port unless port.nil?
  smart_proxy(params)
end