Sha256: 9a17280b99620f0a07f8b5fcb8fc172b167c357f023e6bd9905e989a32791381
Contents?: true
Size: 558 Bytes
Versions: 5
Compression:
Stored size: 558 Bytes
Contents
WebAdminApp.get '/processes' do get_menu 1 url = "http://#{get_config.webadmin_ip}:#{get_config.webadmin_port}/api/process/list.yml" raw = RestClient::Request.execute(method: 'GET', url: url,timeout: 10) @data = YAML::load(raw)[:data] url = "http://#{get_config.webadmin_ip}:#{get_config.webadmin_port}/api/process/analyse.yml" raw = RestClient::Request.execute(method: 'POST', url: url,timeout: 10) prov = YAML::load(raw)[:data] @result = {} prov.each {|item| @result[item[:process]] = item } slim :processes, :format => :html end
Version data entries
5 entries across 5 versions & 1 rubygems