8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / lib / tasks / config_check.rake
1 namespace :config do
2   desc 'Ensure site configuration has all required settings'
3   task check: :environment do
4     $application_config.sort.each do |k, v|
5       if ENV.has_key?('QUIET') then
6         # Make sure we still check for the variable to exist
7         eval("Rails.configuration.#{k}")
8       else
9         if /(password|secret)/.match(k) then
10           # Make sure we still check for the variable to exist, but don't print the value
11           eval("Rails.configuration.#{k}")
12           $stderr.puts "%-32s %s" % [k, '*********']
13         else
14           $stderr.puts "%-32s %s" % [k, eval("Rails.configuration.#{k}")]
15         end
16       end
17     end
18   end
19 end