Sha256: 96dad9cbebb5dd0a89853c21224bb6ecc978a0bd707586a8f11cbf17c7bdc468
Contents?: true
Size: 482 Bytes
Versions: 6
Compression:
Stored size: 482 Bytes
Contents
class JekyllAuth def self.setup_config @config_file ||= YAML.safe_load_file(File.join(Dir.pwd, "_config.yml")) end def self.config config_file = JekyllAuth.setup_config return {} if config_file.nil? || config_file["jekyll_auth"].nil? config_file["jekyll_auth"] end def self.whitelist whitelist = JekyllAuth::config["whitelist"] Regexp.new(whitelist.join("|")) unless whitelist.nil? end def self.ssl? !!JekyllAuth::config["ssl"] end end
Version data entries
6 entries across 6 versions & 1 rubygems