blib/lib/OS/Package.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 38 / 38 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/ospkg ↑ Summary blib/lib/OS/Package/Application.pm »
1 5 ▶use v5.14.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package OS::Package;
5  
6 # ABSTRACT: OS Package Management System
7 5 our $VERSION = '0.2.6'; # VERSION
8  
9 5 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use Path::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 5 ▶use OS::Package::System;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 5 ▶use Types::Standard qw( Str ArrayRef InstanceOf );
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 5 with qw(
15 OS::Package::Role::Clean
16 OS::Package::Role::Build
17 OS::Package::Role::Prune
18 );
19  
20 5 has [qw/name description prefix/] =>
21 ( is => 'rw', isa => Str, required => 1 );
22  
23 5 has [qw/config install build_id/] => ( is => 'rw', isa => Str );
24  
25 5 has [qw/prune_dirs prune_files/] => ( is => 'rw', isa => ArrayRef );
26  
27 5 has artifact => ( is => 'rw', isa => InstanceOf ['OS::Package::Artifact'] );
28  
29 5 has application => (
30 is => 'rw',
31 isa => InstanceOf ['OS::Package::Application'],
32 required => 1
33 );
34  
35 has system => (
36 is => 'rw',
37 isa => InstanceOf ['OS::Package::System'],
38 3 ▶ default => sub { return OS::Package::System->new; },
Subroutine __ANON__: called CC=1 SCAR=0.0
39 5 required => 1
40 );
41  
42 5 has maintainer => (
43 is => 'rw',
44 isa => InstanceOf ['OS::Package::Maintainer'],
45 required => 1
46 );
47  
48 has fakeroot => (
49 is => 'rw',
50 isa => InstanceOf ['Path::Tiny'],
51 required => 1,
52 3 ▶ default => sub { return Path::Tiny->tempdir }
Subroutine __ANON__: called CC=1 SCAR=0.0
53 5 );
54  
55 5 1;
56  
57 __END__
58  
59 =pod
60  
61 =encoding UTF-8
62  
63 =head1 NAME
64  
65 OS::Package - OS Package Management System
66  
67 =head1 VERSION
68  
69 version 0.2.6
70  
71 =head1 AUTHOR
72  
73 James F Wilkus <jfwilkus@cpan.org>
74  
75 =head1 COPYRIGHT AND LICENSE
76  
77 This software is Copyright (c) 2014 by James F Wilkus.
78  
79 This is free software, licensed under:
80  
81 The (three-clause) BSD License
82  
83 =head1 CHANGES
84  
85 =head2 Version 0.2.5 (2014-09-28)
86  
87 =over 4
88  
89 =item *
90  
91 POD update
92  
93 =back
94  
95 =head2 Version 0.2.4 (2014-09-28)
96  
97 =over 4
98  
99 =item *
100  
101 Fix sprintf error in SVR4 plugin [GH-2]
102  
103 =item *
104  
105 Add missing dependency
106  
107 =back
108  
109 =head2 Version 0.2.3 (2014-09-27)
110  
111 =over 4
112  
113 =item *
114  
115 POD updates
116  
117 =back
118  
119 =head2 Version 0.2.2 (2014-09-27)
120  
121 =over 4
122  
123 =item *
124  
125 update email address
126  
127 =back
128  
129 =head2 Version 0.2.1 (2014-09-27)
130  
131 =over 4
132  
133 =item *
134  
135 Add github metadata
136  
137 =back
138  
139 =head2 Version 0.2.0 (2014-09-27)
140  
141 =over 4
142  
143 =item *
144  
145 Add build tag option
146  
147 =item *
148  
149 Add init command
150  
151 =item *
152  
153 ospkg configuration stored in ~/.ospkg by default
154  
155 =back
156  
157 =head2 Version 0.1.0 (2014-09-11)
158  
159 =over 4
160  
161 =item *
162  
163 Initial Release
164  
165 =back
166  
167 =cut
« bin/ospkg ↑ Summary blib/lib/OS/Package/Application.pm »