Module: RSMP::TLC::Modules::Outputs
- Included in:
- TrafficController
- Defined in:
- lib/rsmp/tlc/modules/outputs.rb
Overview
Output management for traffic controller Handles output status queries and forcing
Instance Method Summary collapse
-
#handle_m0020(arg, _options = {}) ⇒ Object
M0020 - Force output.
-
#handle_s0004(_status_code, status_name = nil, _options = {}) ⇒ Object
S0004 - Output status.
-
#handle_s0030(_status_code, status_name = nil, _options = {}) ⇒ Object
S0030 - Forced output status.
Instance Method Details
#handle_m0020(arg, _options = {}) ⇒ Object
M0020 - Force output
8 9 10 |
# File 'lib/rsmp/tlc/modules/outputs.rb', line 8 def handle_m0020(arg, = {}) @node.verify_security_code 2, arg['securityCode'] end |
#handle_s0004(_status_code, status_name = nil, _options = {}) ⇒ Object
S0004 - Output status
13 14 15 16 17 18 |
# File 'lib/rsmp/tlc/modules/outputs.rb', line 13 def handle_s0004(_status_code, status_name = nil, = {}) case status_name when 'outputstatus', 'extendedoutputstatus' TrafficControllerSite.make_status 0 end end |
#handle_s0030(_status_code, status_name = nil, _options = {}) ⇒ Object
S0030 - Forced output status
21 22 23 24 25 26 |
# File 'lib/rsmp/tlc/modules/outputs.rb', line 21 def handle_s0030(_status_code, status_name = nil, = {}) case status_name when 'status' TrafficControllerSite.make_status '' end end |