class AdminUpdate
Public Instance Methods
layout()
click to toggle source
# File Views/Admin/Update.rb, line 2 def layout @order = 550 @update = true gui_hbox do gui_vbox :nogroup do show_list_single :update_files, width: 300 show_upload :upload_update, callback: true show_button :update, :delete end gui_window :confirm_win do show_html :confirm_html show_button :confirm_ok, :close end end end
list_files()
click to toggle source
# File Views/Admin/Update.rb, line 32 def list_files list_http + list_usb + list_tmp end
list_http()
click to toggle source
# File Views/Admin/Update.rb, line 20 def list_http [] end
list_tmp()
click to toggle source
# File Views/Admin/Update.rb, line 28 def list_tmp Dir.glob('/tmp/*.pkg.tar.*z').collect { |f| "file://#{f}" } end
list_usb()
click to toggle source
# File Views/Admin/Update.rb, line 24 def list_usb [] end
rpc_update(_session, select = [])
click to toggle source
# File Views/Admin/Update.rb, line 36 def rpc_update(_session, select = []) reply(:empty_update, update_files: (list_files + select)) + reply(:update, upload_update: 'Upload') end