| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Clustericious::Config::Password; |
|
2
|
|
|
|
|
|
|
|
|
3
|
14
|
|
|
14
|
|
15371
|
use Data::Dumper; |
|
|
14
|
|
|
|
|
125475
|
|
|
|
14
|
|
|
|
|
1186
|
|
|
4
|
14
|
|
|
14
|
|
126
|
use strict; |
|
|
14
|
|
|
|
|
30
|
|
|
|
14
|
|
|
|
|
534
|
|
|
5
|
14
|
|
|
14
|
|
82
|
use warnings; |
|
|
14
|
|
|
|
|
30
|
|
|
|
14
|
|
|
|
|
8668
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: password routines for Clustericious::Config |
|
8
|
|
|
|
|
|
|
our $VERSION = '0.28'; # VERSION |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $Stashed; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub sentinel { |
|
14
|
56
|
|
|
56
|
0
|
572
|
return "__XXX_placeholder_ceaa5b9c080d69ccdaef9f81bf792341__"; |
|
15
|
|
|
|
|
|
|
} |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub get { |
|
18
|
0
|
|
|
0
|
0
|
0
|
my $self = shift; |
|
19
|
0
|
|
|
|
|
0
|
require Term::Prompt; |
|
20
|
0
|
|
0
|
|
|
0
|
$Stashed ||= Term::Prompt::prompt('p', 'Password:', '', ''); |
|
21
|
0
|
|
|
|
|
0
|
$Stashed; |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub is_sentinel { |
|
25
|
56
|
|
|
56
|
0
|
90
|
my $class = shift; |
|
26
|
56
|
|
|
|
|
77
|
my $val = shift; |
|
27
|
56
|
|
33
|
|
|
290
|
return (defined($val) && $val eq $class->sentinel); |
|
28
|
|
|
|
|
|
|
} |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |