module Jekyll::Algolia::Configurator
def self.assert_valid_credentials
Returns true if everything is ok, false otherwise. Will display helpful
Public: Check that all credentials are set
def self.assert_valid_credentials checks = %w[application_id index_name api_key] checks.each do |check| if send(check.to_sym).nil? Logger.known_message("missing_#{check}") return false end end true end