Changeset 356
- Timestamp:
- Nov 10, 2006, 8:28:52 PM (14 years ago)
- Location:
- wiki-toolkit-plugin-ping
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki-toolkit-plugin-ping/lib/Wiki/Toolkit/Plugin/Ping.pm
r354 r356 4 4 use warnings; 5 5 6 our $VERSION = '0.01';6 use vars qw( @ISA $VERSION ); 7 7 8 use base 'Wiki::Toolkit::Plugin';8 use Wiki::Toolkit::Plugin; 9 9 use LWP; 10 10 11 @ISA = qw( Wiki::Toolkit::Plugin ); 12 $VERSION = '0.01'; 11 13 12 14 15 # Set things up 13 16 sub new { 14 17 my $class = shift; … … 37 40 # Done setup 38 41 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 46 sub 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 39 57 } 40 58
Note: See TracChangeset
for help on using the changeset viewer.