Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow SET role = psgi_server to work

  • Loading branch information...
commit 625a339161116331cb26025e67306711e9389f73 1 parent e74acde
Jonathan Steinert authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/Perlbal/Plugin/PSGI.pm
View
3  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.