Sha256: 376141bcb68fa1f03703d8728a31e4f4a0959226b4f5a43cde9ba28d25952b4c
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
%w{ uri murlsh }.each { |m| require m } module Murlsh # notify PubSubHubbub hubs that feed has been updated class AddPost60NotifyHubs < Plugin @hook = 'add_post' def self.run(url, config) hubs = config.fetch('pubsubhubbub_hubs', []) unless hubs.empty? require 'push-notify' feed_url = URI.join(config['root_url'], config['feed_file']) begin PushNotify::Content.new(feed_url).tell(*hubs.map { |h| h['publish_url'] }) rescue Exception end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
murlsh-1.0.0 | plugins/add_post_60_notify_hubs.rb |