SD/CLI/Command/Help/Environment.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package App::SD::CLI::Command::Help::Environment;
2 use Any::Moose;
3 extends 'App::SD::CLI::Command::Help';
4  
5 sub run {
6 my $self = shift;
7 $self->print_header('Environment variables');
8 my ${cmd}= $self->cli->get_script_name;
9  
10 print <<EOF
11  
12 The following environmental variables can be set to affect SD's
13 configuration. Example syntax is for bash-like shells.
14  
15 export SD_REPO=/path/to/sd/replica
16 Specify where the ticket database SD is using should reside.
17  
18 export PROPHET_EMAIL=jesse\@example.com
19 Use 'jesse\@example.com' as the creator of changesets. Prophet
20 will use EMAIL if PROPHET_EMAIL isn't defined.
21
22 export SD_CONFIG=/path/to/sd/config/file
23 Specify where the configuration file SD is using should reside.
24 If this variable is specified, no other config file will be
25 loaded.
26  
27 export PROPHET_HISTFILE=~/.sd-history
28 Specify where the interactive shell should store its history.
29  
30 export PROPHET_HISTLENGTH=100
31 Specify how much history the interactive shell should store.
32  
33 export PROPHET_DEVEL=1
34 Turn on various development mode checks, warnings and autoreloading
35 of modules.
36  
37 export PROPHET_REPLICA_TYPE=prophet
38 Use the prophet native replica type. Other backend replica
39 types are: sqlite.
40  
41  
42 For information on SD database configuration files, see '${cmd}help config'.
43 EOF
44  
45 }
46  
47 __PACKAGE__->meta->make_immutable;
48 no Any::Moose;
49  
50 1;
51