From ca1e5179fe0698424d3291686166af4f8e12372a Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Thu, 4 Oct 2018 08:11:00 +0530 Subject: [PATCH] Bootstrap WebmentionIO with webmention command --- lib/jekyll/commands/webmention.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/commands/webmention.rb b/lib/jekyll/commands/webmention.rb index bfae485..3d11e77 100644 --- a/lib/jekyll/commands/webmention.rb +++ b/lib/jekyll/commands/webmention.rb @@ -14,7 +14,10 @@ def self.init_with_program(prog) end end - def self.process(_args = [], _options = {}) + def self.process(_args = [], options = {}) + options = configuration_from_options(options) + WebmentionIO.bootstrap(Jekyll::Site.new(options)) + if File.exist? WebmentionIO.cache_file("sent.yml") WebmentionIO.log "error", "Your outgoing webmentions queue needs to be upgraded. Please re-build your project." end