Method: RTunnel::Client#process_options
- Defined in:
- lib/rtunnel/client.rb
#process_options(options) ⇒ Object
option processing
47 48 49 50 51 52 53 54 55 |
# File 'lib/rtunnel/client.rb', line 47 def () [:control_address, :remote_listen_address, :tunnel_to_address, :tunnel_timeout, :private_key].each do |opt| instance_variable_set "@#{opt}".to_sym, RTunnel::Client.send("extract_#{opt}".to_sym, [opt]) end init_log :level => [:log_level] end |