Sha256: 96619ebbc9b0fc4a8fb0d3c22718698ed12955137e14a0ace5a763dcb310a782
Contents?: true
Size: 672 Bytes
Versions: 11
Compression:
Stored size: 672 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'pathname' require 'yaml' require 'optparse' require 'jekyll-indico/cache' options = { config: '_config.yml' } OptionParser.new do |opts| opts.on('-c', '--config=FILE', 'Read a config file') do |c| options[:config] = c end end.parse! puts "Reading #{options[:config]}" config = YAML.safe_load(File.read(options[:config])) meeting_ids = JekyllIndico::Meetings.meeting_ids(config) base_url = JekyllIndico::Meetings.base_url(config) data_path = config.dig('indico', 'data') || 'indico' JekyllIndico.cache(base_url, meeting_ids, data_path) do |name, number| puts "Accessing #{number} for #{name}" end
Version data entries
11 entries across 11 versions & 1 rubygems