Skip to content

Commit

Permalink
Remove okcomputer check for symphony when not using symphony
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jun 13, 2023
1 parent 4fe9d59 commit 343e00b
Showing 1 changed file with 16 additions and 14 deletions.
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

0 comments on commit 343e00b

Please sign in to comment.