blib/lib/Magpie/Machine.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Magpie/Error/Simplified.pm ↑ Summary blib/lib/Magpie.pm »
1 package Magpie::Machine;
2 47 $Magpie::Machine::VERSION = '1.141660';
3 47 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 47 extends 'Magpie::Component';
5 47 ▶use Magpie::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 47 ▶use Magpie::Resource::Abstract;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 47 ▶use Magpie::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 #ABSTRACT: Event Class For Creating Magpie Pipelines
10  
11 47 has resource => (
12 is => 'rw',
13 isa => 'MagpieResourceObject',
14 #coerce => 1,
15 );
16  
17 #sub has_resource { defined shift->resource ? 1 : 0 }
18  
19  
20 #-------------------------------------------------------------------------------
21 # pipline( @list_of_class_names )
22 # This loads the list of Event classes that will constitue the app's
23 # program flow.
24 #-------------------------------------------------------------------------------
25 sub pipeline {
26 115 ▶ my $self = shift;
Subroutine pipeline: called CC=1 SCAR=0.0
Pod undocumented
27 115 my @args = @_;
28 115 my @handlers = Magpie::Util::make_tuples( @args );
29 115 $self->handlers(\@handlers);
30 }
31  
32 # SEEALSO: Magpie
33  
34 47 1;
35  
36 __END__
37 =pod
38  
39 =head1 NAME
40  
41 Magpie::Machine - Event Class For Creating Magpie Pipelines
42  
43 =head1 VERSION
44  
45 version 1.141660
46  
47 =head1 AUTHORS
48  
49 =over 4
50  
51 =item *
52  
53 Kip Hampton <kip.hampton@tamarou.com>
54  
55 =item *
56  
57 Chris Prather <chris.prather@tamarou.com>
58  
59 =back
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2011 by Tamarou, LLC.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
69  
« blib/lib/Magpie/Error/Simplified.pm ↑ Summary blib/lib/Magpie.pm »