Fixing Mephisto Post Pinger Plugin
Posted by hank, Fri Mar 02 17:56:00 UTC 2007
I wanted some places to get pinged when I posted. I used the mephisto_post_ping plugin, I simply changed the directory structure and class definition around:
Directory Structure
./lib/article_ping_observer.rb
./lib/mephisto_plugins/post_ping.rb
./lib/config.rb
./README
./init.rb
File Changes
init.rb
# $Id$ require 'mephisto_plugins/post_ping' ActiveRecord::Base.observers << :article_ping_observer
plugin.rb
module Mephisto module Plugins class PostPinger < Mephisto::Plugin author 'Mark Guzman' version '$Rev: 82 $'.gsub( "Rev: ", "" ) notes "Send Weblogs Pings when articles are published" homepage "http://hasno.info/2006/11/11/mephisto-plugins" class Schema < ActiveRecord::Migration def self.install end def self.uninstall end end end end end
That’s all I changed. This is my first post since the change, so I’ll see if it works. If not, at least Mephisto doesn’t blow up on startup.
Results
Well,
unable to send xmlrpc weblog ping -> http://www.ralree.info
unable to send xmlrpc weblog ping -> http://www.ralree.info
unable to send xmlrpc weblog ping -> http://www.ralree.info
unable to send xmlrpc weblog ping -> http://www.ralree.info
Seems like a couple might have worked. I’ll keep working on it. But, at least it gets called.


Blog Posts
October 18, 2007 @ 03:12 AM
Blurb blurb blurb Ralree Blurb blurb blurb…oO0