TaskPipe/Template_Plan_Stub.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« TaskPipe/Template_Plan_SP500.pm ↑ Summary TaskPipe/Template_Task_SP500ScrapeCompanies.pm »
1 package TaskPipe::Template_Plan_Stub;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends 'TaskPipe::Template_Plan';
5  
6 1 has template => (is => 'ro', isa => 'Str', default => q|---
7 # A plan is a YAML file with data in 1 of 2 possible formats:
8 #
9 # 1. 'branch' format (simpler, but only allows for 1 'branch')
10  
11 - _name: SourceFromDB
12 table: my_db_table
13  
14 - _name: Scrape_Something
15 url: http://www.example.com/scrape-me
16 headers:
17 Referer: http://www.example.com
18  
19  
20  
21 # 2. 'tree' format. (Slightly more complex, but allows for
22 # multiple branches)
23  
24 task:
25 _name: SourceFromDB
26 table: my_db_table
27  
28 pipe_to:
29  
30 task:
31 _name: Scrape_Something
32 url: http://www.example.com/scrape-me
33 headers:
34 Referer: http://www.example.com
35  
36  
37 # The above 2 plans are equivalent. Choose your weapon, delete the other and adapt
38 # (No, don't try to use this plan without adapting it..!)|);
39  
40  
41 =head1 NAME
42  
43 TaskPipe::Template_Plan_Stub - template for the default plan
44  
45 =head1 DESCRIPTION
46  
47 This is the template responsible for creating the default plan (ie just a plan stub)
48  
49 =head1 AUTHOR
50  
51 Tom Gracey <tomgracey@gmail.com>
52  
53 =head1 COPYRIGHT AND LICENSE
54  
55 Copyright (c) Tom Gracey 2018
56  
57 TaskPipe is free software, licensed under
58  
59 The GNU Public License Version 3
60  
61 =cut
62  
63  
64  
65 1 1;
« TaskPipe/Template_Plan_SP500.pm ↑ Summary TaskPipe/Template_Task_SP500ScrapeCompanies.pm »