Permalink
Browse files

Allow SET role = psgi_server to work

  • Loading branch information...
1 parent e74acde commit 625a339161116331cb26025e67306711e9389f73 Jonathan Steinert committed Feb 26, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Perlbal/Plugin/PSGI.pm
@@ -38,10 +38,13 @@ sub unregister {
sub load {
Perlbal::register_global_hook('manage_command.psgi_app', \&handle_psgi_app_command);
+ Perlbal::Service::add_role('psgi_server', sub { Perlbal::Plugin::PSGI::Client->new(@_) });
return 1;
}
sub unload {
+ Perlbal::unregister_global_hook('manage_command.psgi_app');
+ Perlbal::Service::remove_role('psgi_server');
return 1;
}

0 comments on commit 625a339

Please sign in to comment.