class SpecialVNC
Public Instance Methods
layout()
click to toggle source
# File Views/Special/Vnc.rb, line 2 def layout @order = 100 @auto_update = 5 @update = true @functions_need = [:special_vnc] gui_vbox do show_str :ip show_str :password show_str_ro :status show_button :start_x end end
rpc_update(session)
click to toggle source
# File Views/Special/Vnc.rb, line 16 def rpc_update(session) reply(:update, password: @static._password) + reply(:update, ip: session.client_ip) + rpc_update_with_values(nil, nil) end
rpc_update_with_values(session, data)
click to toggle source
# File Views/Special/Vnc.rb, line 22 def rpc_update_with_values(session, data) reply(:update, status: System.run_str('pgrep -af vnc')) end