Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S0098 #101

Merged
merged 2 commits into from
Dec 13, 2024
Merged

S0098 #101

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rsmp (0.33.4)
rsmp (0.34.0)
async (~> 2.16)
async-io (~> 1.43)
colorize (~> 1.1)
Expand Down
16 changes: 15 additions & 1 deletion lib/rsmp/tlc/traffic_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def get_status code, name=nil, options={}
'S0015', 'S0016', 'S0017', 'S0018', 'S0019', 'S0020', 'S0021',
'S0022', 'S0023', 'S0024', 'S0026', 'S0027', 'S0028',
'S0029', 'S0030', 'S0031', 'S0032', 'S0033', 'S0035',
'S0091', 'S0092', 'S0095', 'S0096', 'S0097',
'S0091', 'S0092', 'S0095', 'S0096', 'S0097', 'S0098',
'S0205', 'S0206', 'S0207', 'S0208'
return send("handle_#{code.downcase}", code, name, options)
else
Expand Down Expand Up @@ -1008,6 +1008,20 @@ def handle_s0097 status_code, status_name=nil, options={}
end
end

def handle_s0098 status_code, status_name=nil, options={}
settings = node.site_settings.slice('components','signal_plans','inputs','startup_sequence')
json = JSON.generate(settings)
case status_name
when 'config'
TrafficControllerSite.make_status json
when 'timestamp'
now = clock.to_s
TrafficControllerSite.make_status now
when 'version'
TrafficControllerSite.make_status Digest::MD5.hexdigest(json)
end
end

def handle_s0205 status_code, status_name=nil, options={}
case status_name
when 'start'
Expand Down
2 changes: 1 addition & 1 deletion lib/rsmp/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RSMP
VERSION = "0.33.4"
VERSION = "0.34.0"
end
Loading