Sha256: 37ea2f333ba618cf6d694a6afaf06eb3cc3043af97178025b8cb67c24d82199a
Contents?: true
Size: 674 Bytes
Versions: 3
Compression:
Stored size: 674 Bytes
Contents
class JekyllAuth def self.setup_config @config_file ||= if File.file?(config_filename) YAML.safe_load_file(config_filename) else Hash.new end end def self.config_filename 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-auth-0.6.1 | lib/jekyll-auth/config.rb |
jekyll-auth-0.6.0 | lib/jekyll-auth/config.rb |
jekyll-auth-0.5.2 | lib/jekyll-auth/config.rb |