blib/lib/Dist/Zilla/Stash/PAUSE/Encrypted.pm

filter: Statementstmt 90.4% 19 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 88.4% 23 / 26 CC 1 SCAR 1.8
CC
1
Cov
90%
_build_identity
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary
1 #
2 # This file is part of Dist-Zilla-Stash-PAUSE-Encrypted
3 #
4 # This software is Copyright (c) 2012 by Chris Weyl.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU Lesser General Public License, Version 2.1, February 1999
9 #
10 package Dist::Zilla::Stash::PAUSE::Encrypted;
11 {
12 1 $Dist::Zilla::Stash::PAUSE::Encrypted::VERSION = '0.003';
13 }
14  
15 # ABSTRACT: Keep your PAUSE bits safely encrypted!
16  
17 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use MooseX::AttributeShortcuts;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶use Config::Identity::PAUSE;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 extends 'Dist::Zilla::Stash::PAUSE';
24  
25 has "+$_" => (traits => [Shortcuts], lazy => 1, builder => 1, required => 0)
26 1 for qw{ username password };
27  
28 1 has identity => (
29 traits => ['Hash'],
30 is => 'lazy',
31 isa => 'HashRef',
32 handles => {
33 _build_username => [ get => 'username' ],
34 _build_password => [ get => 'password' ],
35 },
36 );
37  
38 0 ▶sub _build_identity { my %id = Config::Identity::PAUSE->load; \%id }
Subroutine _build_identity: not called CC=1 SCAR=6.9
39  
40 1 __PACKAGE__->meta->make_immutable;
41 1 !!42;
42  
43  
44 =pod
45  
46 =encoding utf-8
47  
48 =for :stopwords Chris Weyl magicky
49  
50 =head1 NAME
51  
52 Dist::Zilla::Stash::PAUSE::Encrypted - Keep your PAUSE bits safely encrypted!
53  
54 =head1 VERSION
55  
56 This document describes version 0.003 of Dist::Zilla::Stash::PAUSE::Encrypted - released July 13, 2012 as part of Dist-Zilla-Stash-PAUSE-Encrypted.
57  
58 =head1 SYNOPSIS
59  
60 # ...do the GPG magicky things described by Config::Identity, then:
61  
62 # in your ~/.dzil/config.ini
63 [%PAUSE::Encrypted / %PAUSE]
64  
65 =head1 DESCRIPTION
66  
67 This is a simple extension of L<Dist::Zilla::Stash::PAUSE> to use
68 L<Config::Identity> to store and access an encrypted version of your PAUSE
69 user id and password.
70  
71 =for Pod::Coverage BUILD
72  
73 =head1 SEE ALSO
74  
75 Please see those modules/websites for more information related to this module.
76  
77 =over 4
78  
79 =item *
80  
81 L<Config::Identity>
82  
83 =item *
84  
85 L<Dist::Zilla::Stash::PAUSE>
86  
87 =item *
88  
89 L<Dist::Zilla::Plugin::UploadToCPAN>
90  
91 =back
92  
93 =head1 SOURCE
94  
95 The development version is on github at L<http://github.com/RsrchBoy/dist-zilla-stash-pause-encrypted>
96 and may be cloned from L<git://github.com/RsrchBoy/dist-zilla-stash-pause-encrypted.git>
97  
98 =head1 BUGS
99  
100 Please report any bugs or feature requests on the bugtracker website
101 https://github.com/RsrchBoy/dist-zilla-stash-pause-encrypted/issues
102  
103 When submitting a bug or request, please include a test-file or a
104 patch to an existing test-file that illustrates the bug or desired
105 feature.
106  
107 =head1 AUTHOR
108  
109 Chris Weyl <cweyl@alumni.drew.edu>
110  
111 =head1 COPYRIGHT AND LICENSE
112  
113 This software is Copyright (c) 2012 by Chris Weyl.
114  
115 This is free software, licensed under:
116  
117 The GNU Lesser General Public License, Version 2.1, February 1999
118  
119 =cut
120  
121  
122 __END__
↑ Summary