Skip to content

Instantly share code, notes, and snippets.



Created Nov 16, 2012
What would you like to do?
Pingomatic task for Octopress blogging
desc 'Ping pingomatic'
task :pingomatic do
require 'xmlrpc/client'
cfg = YAML.load_file("_config.yml")
puts '* Pinging ping-o-matic''', '/').call('weblogUpdates.extendedPing', "#{cfg['title']}" , "#{cfg['url']}", "#{cfg['subscribe_rss']}")
rescue LoadError
puts '! Could not ping ping-o-matic, because XMLRPC::Client could not be found.'

This comment has been minimized.

Copy link
Owner Author

@symm symm commented Nov 16, 2012

Caution: Your "subscribe_rss" var should be a full http url to the atom.xml feed.


This comment has been minimized.

Copy link

@Stratus3D Stratus3D commented Nov 19, 2017

What about "#{cfg['url']}#{cfg['subscribe_rss']}" instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.