Skip to content

Commit

Permalink
Allow SET role = psgi_server to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Steinert committed Feb 28, 2010
1 parent e74acde commit 625a339
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Perlbal/Plugin/PSGI.pm
Expand Up @@ -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;
}

Expand Down

0 comments on commit 625a339

Please sign in to comment.