| 1 | package Ukigumo::Agent; | ||||||||||
| 2 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use 5.010001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 6 | ▶ | use version; our $VERSION = version->declare("v0.1.7"); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 6 | ▶ | use parent qw(Amon2 Amon2::Web); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 6 | ▶ | use Carp (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | sub load_config { | ||||||||||
| 10 | 0 | ▶ | my ($c, $file) = @_; | ||||||||
|
Subroutine
load_config: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 11 | |||||||||||
| 12 | 0 | my $config = do $file; | |||||||||
| 13 | 0 | ▶ | Carp::croak("$file: $@") if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 0 | ▶ | Carp::croak("$file: $!") unless defined $config; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | ▶ | unless ( ref($config) eq 'HASH' ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 0 | Carp::croak("$file does not return HashRef."); | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 0 | $config; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 6 | ▶ | use Ukigumo::Agent::Dispatcher; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | 6 | ▶ | use Ukigumo::Logger; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | |||||||||||
| 25 | 6 | __PACKAGE__->load_plugins(qw(Web::JSON ShareDir)); | |||||||||
| 26 | |||||||||||
| 27 | sub dispatch { | ||||||||||
| 28 | 0 | ▶ | my ($c) = @_; | ||||||||
|
Subroutine
dispatch: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 29 | 0 | return Ukigumo::Agent::Dispatcher->dispatch($c); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | { | ||||||||||
| 33 | 6 | ▶ | use Ukigumo::Agent::View; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 34 | 6 | my $view = Ukigumo::Agent::View->make_instance(__PACKAGE__); | |||||||||
| 35 | 0 | ▶ | sub create_view { $view } | ||||||||
|
Subroutine
create_view: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | { | ||||||||||
| 39 | 6 | my $_manager; | |||||||||
| 40 | 0 | ▶ | sub register_manager { $_manager = $_[1] } | ||||||||
|
Subroutine
register_manager: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 41 | 0 | ▶ | sub manager { $_manager || die "Missing manager" } | ||||||||
|
Subroutine
manager: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | { | ||||||||||
| 45 | 6 | my $_logger = Ukigumo::Logger->new; | |||||||||
| 46 | 0 | ▶ | sub logger { $_logger } | ||||||||
|
Subroutine
logger: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | 6 | 1; | |||||||||
| 50 | __END__ | ||||||||||
| 51 | |||||||||||
| 52 | =encoding utf8 | ||||||||||
| 53 | |||||||||||
| 54 | =head1 NAME | ||||||||||
| 55 | |||||||||||
| 56 | Ukigumo::Agent - Ukigumo test runner server | ||||||||||
| 57 | |||||||||||
| 58 | =head1 DESCRIPTION | ||||||||||
| 59 | |||||||||||
| 60 | Look L<ukigumo-agent.pl>. | ||||||||||
| 61 | |||||||||||
| 62 | =head1 AUTHOR | ||||||||||
| 63 | |||||||||||
| 64 | Tokuhiro Matsuno E<lt>tokuhirom AAJKLFJEF@ GMAIL COME<gt> | ||||||||||
| 65 | |||||||||||
| 66 | =head1 SEE ALSO | ||||||||||
| 67 | |||||||||||
| 68 | =head1 LICENSE | ||||||||||
| 69 | |||||||||||
| 70 | Copyright (C) Tokuhiro Matsuno | ||||||||||
| 71 | |||||||||||
| 72 | This library is free software; you can redistribute it and/or modify | ||||||||||
| 73 | it under the same terms as Perl itself. | ||||||||||
| 74 | |||||||||||
| 75 | =cut | ||||||||||