blib/lib/MYDan.pm

filter: Statementstmt 100% 23 / 23 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 90.9% 30 / 33 CC 5 SCAR 13.1
CC
5
Cov
90%
BEGIN
5.3
BEGIN
1.0
BEGIN
1.0
CRAP 3.7
« blib/lib/MYDan/Project/Deploy.pm ↑ Summary blib/lib/MYDan/Util/Screen.pm »
1 package MYDan;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 MYDan - A suite of cluster administration tools and platforms
9  
10 http://www.mydan.org
11  
12 =cut
13  
14 1 our $VERSION = '0.1.12';
15 1 our $PATH;
16  
17 1 require 5.000;
18 1 require Exporter;
19 1 our @EXPORT_OK = qw( $PATH );
20 1 our @ISA = qw(Exporter);
21 1 ▶use FindBin qw( $RealBin );
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 BEGIN{
24 1 ▶ my @path;
Subroutine BEGIN: called CC=5 SCAR=16.7
25 1 ▶ unless( $PATH = $ENV{MYDanPATH} )
Branch: 1 branch
BranchTrueFalseTotal
unless ($MYDan::PATH = $ENV{"MYDanPATH"}) 1 0 1
26 {
27 1 for( split /\//, $RealBin )
28 {
29 7 push @path, $_;
30 7 ▶ last if $_ eq 'mydan';
Branch: 1 branch
BranchTrueFalseTotal
if $_ eq "mydan" 0 7 7
31 }
32 1 ▶ die 'nofind MYDanPATH' unless @path;
Branch: 1 branch
BranchTrueFalseTotal
unless @path 0 1 1
33 1 $ENV{MYDanPATH} = $PATH = join '/', @path;
34 }
35 };
36  
37 =head1 MODULES
38  
39 =head3 Node
40  
41 A cluster information management platform
42  
43 MYDan::Node
44 MYDan::Node::Range
45 MYDan::Node::KeySet
46 MYDan::Node::Integer
47 MYDan::Node::Cache
48 MYDan::Node::Call
49 MYDan::Node::DBI::Cache
50 MYDan::Node::DBI::Root
51  
52 a agent
53  
54 Agent
55
56 =head3 API
57  
58 platform api
59  
60 MYDan::API
61  
62  
63 =head1 AUTHOR
64  
65 Lijinfeng, C<< <lijinfeng2011 at github.com> >>
66  
67 =head1 LICENSE AND COPYRIGHT
68  
69 Copyright 2017 lijinfeng2011.
70  
71 This program is free software; you can redistribute it and/or modify it
72 under the terms of either: the GNU General Public License as published
73 by the Free Software Foundation; or the Artistic License.
74  
75 =cut
76  
77 1 1;
« blib/lib/MYDan/Project/Deploy.pm ↑ Summary blib/lib/MYDan/Util/Screen.pm »