Skip to content

Commit

Permalink
Merge pull request #116 from ashmaroli/webmention-command-patch
Browse files Browse the repository at this point in the history
Bootstrap WebmentionIO with webmention command
  • Loading branch information
aarongustafson authored Oct 4, 2018
2 parents c215e28 + ca1e517 commit 742a65d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/jekyll/commands/webmention.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 742a65d

Please sign in to comment.