blib/lib/WebDyne/Install/Constant.pm

filter: Statementstmt 95.8% 23 / 24 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 93.5% 29 / 31 CC 1 SCAR 0.0
CC
1
Cov
92%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WebDyne/Request/PSGI.pm ↑ Summary .pm_filter.pf »
1 #
2 # This file is part of WebDyne.
3 #
4 # This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>.
5 #
6 # This is free software; you can redistribute it and/or modify it under
7 # the same terms as the Perl 5 programming language system itself.
8 #
9 # Full license text is available at:
10 #
11 # <http://dev.perl.org/licenses/>
12 #
13  
14  
15  
16 # Constants file
17 #
18 package WebDyne::Install::Constant;
19  
20  
21 # Pragma
22 #
23 6 ▶use strict qw(vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
24 6 ▶use vars qw($VERSION @ISA %Constant);
Subroutine BEGIN: called CC=1 SCAR=0.0
25 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27  
28 # Does the heavy liftying of importing into caller namespace
29 #
30 6 require WebDyne::Constant;
31 6 @ISA=qw(WebDyne::Constant);
32  
33  
34 # External Modules
35 #
36 6 ▶use File::Path;
Subroutine BEGIN: called CC=1 SCAR=0.0
37 6 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
38  
39  
40 # Version information
41 #
42 6 $VERSION='3.029';
43  
44  
45 #------------------------------------------------------------------------------
46  
47  
48 # Work out default cache directory location if none spec'd by user and
49 # no PREFIX supplied
50 #
51 6 my $cache_default_dn;
52  
53  
54 # Windows ?
55 #
56 6 ▶if ($^O=~/MSWin[32|64]/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($^O =~ /MSWin[32|64]/) { } 0 6 6
57 0 $cache_default_dn=File::Spec->catdir($ENV{'SYSTEMROOT'}, qw(TEMP webdyne))
58 }
59  
60 # No - set to /var/cache/webdyne
61 #
62 else {
63 6 $cache_default_dn=File::Spec->catdir(
64 File::Spec->rootdir(), qw(var cache webdyne)
65 );
66 }
67  
68  
69 # Real deal
70 #
71 6 %Constant=(
72  
73  
74 # Default cache directory
75 #
76 DIR_CACHE_DEFAULT => $cache_default_dn
77  
78  
79 );
80  
81  
82 # Done
83 #
84 6 1;__END__
85  
86 =begin markdown
87  
88 # WebDyne::Install::Constant #
89  
90 # NAME #
91  
92 WebDyne::Install::Constant - installer defaults used by WebDyne installation helpers
93  
94 # SYNOPSIS #
95  
96 ```perl
97 use WebDyne::Install::Constant;
98 ```
99  
100 # DESCRIPTION #
101  
102 `WebDyne::Install::Constant` defines shared defaults used by the installer modules. In the current code this is limited to the default cache directory path chosen when no explicit cache directory is supplied.
103  
104 # CONSTANTS #
105  
106 * **DIR_CACHE_DEFAULT**
107  
108 Default cache directory path used by the installer layer.
109
110 On Unix-like systems this defaults to `/var/cache/webdyne`.
111
112 On Windows it defaults under `%SYSTEMROOT%/TEMP/webdyne`.
113  
114 # AUTHOR #
115  
116 Andrew Speer <andrew.speer@isolutions.com.au>
117  
118 # LICENSE and COPYRIGHT
119  
120 This file is part of WebDyne.
121  
122 This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>.
123  
124 This is free software; you can redistribute it and/or modify it under
125 the same terms as the Perl 5 programming language system itself.
126  
127 Full license text is available at:
128  
129 <http://dev.perl.org/licenses/>
130  
131  
132 =end markdown
133  
134  
135 =head1 WebDyne::Install::Constant
136  
137  
138 =head1 NAME
139  
140 WebDyne::Install::Constant - installer defaults used by WebDyne installation helpers
141  
142  
143 =head1 SYNOPSIS
144  
145  
146 use WebDyne::Install::Constant;
147  
148 =head1 DESCRIPTION
149  
150 C<WebDyne::Install::Constant> defines shared defaults used by the installer modules. In the current code this is limited to the default cache directory path chosen when no explicit cache directory is supplied.
151  
152  
153 =head1 CONSTANTS
154  
155 =over
156  
157 =item *
158  
159 B<DIR_CACHE_DEFAULT>
160  
161 Default cache directory path used by the installer layer.
162  
163 On Unix-like systems this defaults to C</var/cache/webdyne>.
164  
165 On Windows it defaults under C<%SYSTEMROOT%/TEMP/webdyne>.
166  
167  
168  
169 =back
170  
171  
172 =head1 AUTHOR
173  
174 Andrew Speer L<mailto:andrew.speer@isolutions.com.au>
175  
176  
177 =head1 LICENSE and COPYRIGHT
178  
179 This file is part of WebDyne.
180  
181 This software is copyright (c) 2026 by Andrew Speer L<mailto:andrew.speer@isolutions.com.au>.
182  
183 This is free software; you can redistribute it and/or modify it under
184 the same terms as the Perl 5 programming language system itself.
185  
186 Full license text is available at:
187  
188 L<http://dev.perl.org/licenses/>
189  
190 =cut
« lib/WebDyne/Request/PSGI.pm ↑ Summary .pm_filter.pf »