line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
################################################################################### |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Embperl - Copyright (c) 1997-2008 Gerald Richter / ecos gmbh www.ecos.de |
5
|
|
|
|
|
|
|
# Embperl - Copyright (c) 2008-2014 Gerald Richter |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# You may distribute under the terms of either the GNU General Public |
8
|
|
|
|
|
|
|
# License or the Artistic License, as specified in the Perl README file. |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR |
11
|
|
|
|
|
|
|
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED |
12
|
|
|
|
|
|
|
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13
|
|
|
|
|
|
|
# |
14
|
|
|
|
|
|
|
# $Id: Recipe.pm 1578075 2014-03-16 14:01:14Z richter $ |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
################################################################################### |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
package Embperl::Recipe ; |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
|
8
|
use strict ; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
55
|
|
23
|
1
|
|
|
1
|
|
5
|
use vars qw{@ISA @EXPORT_OK %EXPORT_TAGS %Recipes} ; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
429
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------- |
27
|
|
|
|
|
|
|
# |
28
|
|
|
|
|
|
|
# Get/create named recipe |
29
|
|
|
|
|
|
|
# |
30
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------- |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub get_recipe |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
{ |
36
|
0
|
|
|
0
|
1
|
|
my ($r, $name) = @_ ; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
$r -> app -> get_recipe ($r, $name) ; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------- |
43
|
|
|
|
|
|
|
# |
44
|
|
|
|
|
|
|
# Execute |
45
|
|
|
|
|
|
|
# |
46
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------- |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub Execute |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
{ |
53
|
0
|
|
|
0
|
0
|
|
my ($self) = @_ ; |
54
|
|
|
|
|
|
|
|
55
|
0
|
|
|
|
|
|
return Embperl::Execute ({recipe => $self}) ; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |