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

Remove okcomputer check for symphony when not using symphony #851

Merged
merged 1 commit into from
Jun 13, 2023
Merged
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
30 changes: 16 additions & 14 deletions config/initializers/okcomputer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@

OkComputer.mount_at = false

# OKComputer check that checks if we have a connection to symws
class SymphonyClientCheck < OkComputer::Check
def check
ping = SymphonyClient.new.ping
if Settings.ils.client == 'SymphonyClient'
# OKComputer check that checks if we have a connection to symws
class SymphonyClientCheck < OkComputer::Check
def check
ping = SymphonyClient.new.ping

mark_failure unless ping
mark_failure unless ping
end
end
end

# OKComputer check that checks if we have a connection to the symphony oracle db
class SymphonyDbClientCheck < OkComputer::Check
def check
ping = SymphonyDbClient.new.ping
# OKComputer check that checks if we have a connection to the symphony oracle db
class SymphonyDbClientCheck < OkComputer::Check
def check
ping = SymphonyDbClient.new.ping

mark_failure unless ping
mark_failure unless ping
end
end
end

OkComputer::Registry.register 'symphony_web_services', SymphonyClientCheck.new
OkComputer::Registry.register 'symphony_db_client', SymphonyDbClientCheck.new
OkComputer::Registry.register 'symphony_web_services', SymphonyClientCheck.new
OkComputer::Registry.register 'symphony_db_client', SymphonyDbClientCheck.new
end