Module: Proxy::Omaha::OmahaProtocol
- Defined in:
- lib/smart_proxy_omaha/omaha_protocol.rb,
lib/smart_proxy_omaha/omaha_protocol/handler.rb,
lib/smart_proxy_omaha/omaha_protocol/request.rb,
lib/smart_proxy_omaha/omaha_protocol/response.rb,
lib/smart_proxy_omaha/omaha_protocol/pingresponse.rb,
lib/smart_proxy_omaha/omaha_protocol/updateresponse.rb,
lib/smart_proxy_omaha/omaha_protocol/noupdateresponse.rb,
lib/smart_proxy_omaha/omaha_protocol/errorinternalresponse.rb,
lib/smart_proxy_omaha/omaha_protocol/eventacknowledgeresponse.rb
Defined Under Namespace
Classes: Errorinternalresponse, Eventacknowledgeresponse, Handler, Noupdateresponse, Pingresponse, Request, Response, Updateresponse
Constant Summary
collapse
- COREOS_APPID =
'e96281a6-d1af-4bde-9a0a-97b76e56dc57'
- EVENT_TYPES =
{
0 => 'unknown',
1 => 'download complete',
2 => 'install complete',
3 => 'update complete',
4 => 'uninstall',
5 => 'download started',
6 => 'install started',
9 => 'new application install started',
10 => 'setup started',
11 => 'setup finished',
12 => 'update application started',
13 => 'update download started',
14 => 'update download finished',
15 => 'update installer started',
16 => 'setup update begin',
17 => 'setup update complete',
20 => 'register product complete',
30 => 'OEM install first check',
40 => 'app-specific command started',
41 => 'app-specific command ended',
100 => 'setup failure',
102 => 'COM server failure',
103 => 'setup update failure',
800 => 'ping'
}.freeze
- EVENT_RESULTS =
{
0 => 'error',
1 => 'success',
2 => 'success reboot',
3 => 'success restart browser',
4 => 'cancelled',
5 => 'error installer MSI',
6 => 'error installer other',
7 => 'noupdate',
8 => 'error installer system',
9 => 'update deferred',
10 => 'handoff error'
}.freeze
Class Method Summary
collapse
Class Method Details
.event_description(id) ⇒ Object
58
59
60
61
|
# File 'lib/smart_proxy_omaha/omaha_protocol.rb', line 58
def self.event_description(id)
id = 0 unless EVENT_TYPES.key?(id)
EVENT_TYPES[id]
end
|
.event_result(id) ⇒ Object
63
64
65
66
|
# File 'lib/smart_proxy_omaha/omaha_protocol.rb', line 63
def self.event_result(id)
id = 0 unless EVENT_RESULTS.key?(id)
EVENT_RESULTS[id]
end
|