File: DeploymentPlugin.pm

package info (click to toggle)
libmojolicious-perl 9.31%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,260 kB
  • sloc: perl: 10,139; makefile: 31; javascript: 1
file content (11 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
package MojoliciousTest::Plugin::DeploymentPlugin;
use Mojo::Base 'Mojolicious::Plugin';

sub register {
  my ($self, $app, $config) = @_;
  my $name = $config->{name}    // 'deployment_helper';
  my $msg  = $config->{message} // 'deployment plugins work!';
  $app->helper($name => sub {$msg});
}

1;