Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
add new warning for disabled registry integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Baumanis committed Feb 12, 2018
1 parent b9306bc commit 5f88e65
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/portus/background/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ def work?
end

def enabled?
if APP_CONFIG("background.registry") == true
Rails.logger.warn("WARNING: Registry is disabled!")
else
APP_CONFIG.enabled?("background.registry")
end
end
val = APP_CONFIG.enabled?("background.registry")
Rails.logger.warn("Registry integration has been disabled. This is highly discouraged!") unless val
val
end

def execute!
RegistryEvent.where(status: RegistryEvent.statuses[:fresh]).find_each do |e|
Expand Down

0 comments on commit 5f88e65

Please sign in to comment.