class Jekyll::Converters::EnvironmentVariablesGenerator

Public Instance Methods

generate(site) click to toggle source
# File lib/jekyll/generators/env.rb, line 4
def generate(site)
  # assigning to ENV will not work in liquid templates
  # must iterate through the keys & values and build a new map
  site.config['env'] = {}
  ENV.each do |key, value|
    site.config['env'][key] = value
  end
end