Boxer/Task.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 39 / 39 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Boxer/Role/Interact.pm ↑ Summary Boxer/World.pm »
1 package Boxer::Task;
2  
3 =encoding UTF-8
4  
5 =cut
6  
7 4 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶use Role::Commons -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 4 ▶use namespace::autoclean 0.16;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use autodie;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 4 ▶use MooX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 4 with qw( MooX::Role::Logger Boxer::Role::Interact );
16  
17 4 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 4 ▶no warnings "experimental::signatures";
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 =head1 VERSION
21  
22 Version v1.4.3
23  
24 =cut
25  
26 4 our $VERSION = "v1.4.3";
27  
28 =head1 DESCRIPTION
29  
30 This is the base class for L<Boxer> tasks.
31  
32 Tasks coerce, validate, and process application commands.
33  
34 Currently implemented tasks:
35  
36 =over 4
37  
38 =item *
39  
40 L<Classify|Boxer::Task::Classify>
41  
42 =item *
43  
44 L<Serialize|Boxer::Task::Serialize>
45  
46 =item *
47  
48 L<Bootstrap|Boxer::Task::Bootstrap>
49  
50 =back
51  
52  
53 =head1 IDEAS
54  
55 Tasks are separated from commands
56 to allow for different front-end interfaces,
57 even if currently only a single command-line tool is provided.
58  
59 =head2 wrappers
60  
61 Might be useful to provide wrappers for existing command-line tools,
62 preserving full behavior of the underlying tool
63 only extending it with relevant boxer options.
64  
65 Examples:
66  
67 =over 4
68  
69 =item *
70  
71 C<debootstrap-boxer [...] [--boxer-node=NODE[,NODE2...]] [...]>
72  
73 =back
74  
75 =head2 web
76  
77 Would be cool to offer a web service
78 where you could request a customized system image
79 to be generated for you on demand.
80  
81 =head1 AUTHOR
82  
83 Jonas Smedegaard C<< <dr@jones.dk> >>.
84  
85 =cut
86  
87 4 our $AUTHORITY = 'cpan:JONASS';
88  
89 =head1 COPYRIGHT AND LICENCE
90  
91 Copyright © 2013-2016 Jonas Smedegaard
92  
93 This is free software; you can redistribute it and/or modify it under
94 the same terms as the Perl 5 programming language system itself.
95  
96 =head1 DISCLAIMER OF WARRANTIES
97  
98 THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
99 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
100 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
101  
102 =cut
103  
104 4 1;
« Boxer/Role/Interact.pm ↑ Summary Boxer/World.pm »