Sha256: 3b3de29cbf1b1cd9fe6b4a0545eaadd1905e841f297951e1d115cea5fff04e0a
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
# frozen_string_literal: true require 'pathname' require 'yaml' require 'jekyll-indico/core' # The main module for this package. module JekyllIndico # This will cache the hash of meeting IDs given into the data_path in _data # in the current directory. def self.cache(meeting_ids, data_path) meeting_ids.each do |name, number| yield name, number indico_dir = Pathname.new('_data') / data_path folder = indico_dir / name.to_s indico_dir.mkdir unless indico_dir.directory? folder.mkdir unless folder.directory? iris_meeting = JekyllIndico::Meetings.new number iris_meeting.to_files(folder) { |key| puts "Making #{folder / key}.yml\n" } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-indico-0.1.0 | lib/jekyll-indico/cache.rb |