blib/lib/Git/Raw/Cred.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Git/Raw/Config.pm ↑ Summary blib/lib/Git/Raw/Diff.pm »
1 package Git::Raw::Cred;
2 1 $Git::Raw::Cred::VERSION = '0.90';
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 Git::Raw::Cred - Git credentials class
9  
10 =head1 VERSION
11  
12 version 0.90
13  
14 =head1 DESCRIPTION
15  
16 A L<Git::Raw::Cred> object is used to store credentials.
17  
18 B<WARNING>: The API of this module is unstable and may change without warning
19 (any change will be appropriately documented in the changelog).
20  
21 =head1 METHODS
22  
23 =head2 userpass( $user, $pass )
24  
25 Create a new credential object with the given username and password.
26  
27 =head2 sshkey( $user, $public, $private [, $pass ] )
28  
29 Create a new credential object given a SSH public and private key files, and
30 optionall the password of the private key. If the SSH support has not been
31 enabled at build-time, this method will always return C<undef>.
32  
33 =head2 sshagent( $user )
34  
35 Create a new credential object used for querying an ssh-agent. If the SSH
36 support has not been enabled at build-time, this method will always return
37 C<undef>.
38  
39 =head2 sshinteractive( $user, $callback )
40  
41 Create a new credential object based on interactive authentication. The
42 callback C<$callback> will be invoked when the remote-side issues a challenge.
43 It receives the following parameters: C<$name>, C<$instruction> and
44 C<@prompts>. Any of the parameters passed to the callback may be undefined.
45 Each C<$prompt> entry in C<@prompts> is a hash reference that may contain:
46  
47 =over 4
48  
49 =item * "text"
50  
51 Text for the prompt.
52  
53 =item * "echo"
54  
55 Parameter indicating whether the response of the challenge is safe
56 to be echoed.
57  
58 =back
59  
60 The callback should return a list of responses, one for each prompt.
61 If the SSH support has not been enabled at build-time, this method will always
62 return C<undef>.
63  
64 =head1 AUTHOR
65  
66 Alessandro Ghedini <alexbio@cpan.org>
67  
68 Jacques Germishuys <jacquesg@cpan.org>
69  
70 =head1 LICENSE AND COPYRIGHT
71  
72 Copyright 2012 Alessandro Ghedini.
73  
74 This program is free software; you can redistribute it and/or modify it
75 under the terms of either: the GNU General Public License as published
76 by the Free Software Foundation; or the Artistic License.
77  
78 See http://dev.perl.org/licenses/ for more information.
79  
80 =cut
81  
82 1 1; # End of Git::Raw::Cred
« blib/lib/Git/Raw/Config.pm ↑ Summary blib/lib/Git/Raw/Diff.pm »