Changeset 356

Show
Ignore:
Timestamp:
11/10/06 20:28:52 (5 years ago)
Author:
nick
Message:

Get nearly to the point of doing some work

Location:
wiki-toolkit-plugin-ping
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • wiki-toolkit-plugin-ping/lib/Wiki/Toolkit/Plugin/Ping.pm

    r354 r356  
    44use warnings; 
    55 
    6 our $VERSION = '0.01'; 
     6use vars qw( @ISA $VERSION ); 
    77 
    8 use base 'Wiki::Toolkit::Plugin'; 
     8use Wiki::Toolkit::Plugin; 
    99use LWP; 
    1010 
     11@ISA = qw( Wiki::Toolkit::Plugin ); 
     12$VERSION = '0.01'; 
    1113 
    1214 
     15# Set things up 
    1316sub new { 
    1417    my $class = shift; 
     
    3740    # Done setup 
    3841    return $self; 
     42} 
     43 
     44# Define our post_write plugin, which does the ping 
     45# Happens in another thread, to stop it slowing things down 
     46sub post_write { 
     47    my $self = shift; 
     48 
     49    my %args = @_; 
     50    my ($node,$node_id,$version,$content,$metadata) = 
     51        @args{ qw( node node_id version content metadata ) }; 
     52 
     53    # Spawn a new thread 
     54 
     55    # Build the ping URL 
     56    # Ping 
    3957} 
    4058