Sha256: 0fefd6fde59dec7653887d88f97db490b9d83b3da71d2499d14ab9fe39433b87
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
class JekyllAuthNaked def self.setup_config @config_file ||= YAML.safe_load_file(File.join(Dir.pwd, "_config.yml")) end def self.config config_file = JekyllAuthNaked.setup_config return {} if config_file.nil? || config_file["jekyll_auth_naked"].nil? config_file["jekyll_auth_naked"] end def self.whitelist whitelist = JekyllAuthNaked::config["whitelist"] Regexp.new(whitelist.join("|")) unless whitelist.nil? end def self.ssl? !!JekyllAuthNaked::config["ssl"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-auth-naked-0.1.17 | lib/jekyll-auth-naked/config.rb |