line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Clustericious::Config::Password; |
2
|
|
|
|
|
|
|
|
3
|
15
|
|
|
15
|
|
22470
|
use Data::Dumper; |
|
15
|
|
|
|
|
131460
|
|
|
15
|
|
|
|
|
2351
|
|
4
|
15
|
|
|
15
|
|
125
|
use strict; |
|
15
|
|
|
|
|
25
|
|
|
15
|
|
|
|
|
2011
|
|
5
|
15
|
|
|
15
|
|
269
|
use warnings; |
|
15
|
|
|
|
|
28
|
|
|
15
|
|
|
|
|
6764
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Password routines for Clustericious::Config |
8
|
|
|
|
|
|
|
our $VERSION = '0.29'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $Stashed; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub sentinel { |
14
|
71
|
|
|
71
|
0
|
675
|
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
|
71
|
|
|
71
|
0
|
97
|
my $class = shift; |
26
|
71
|
|
|
|
|
94
|
my $val = shift; |
27
|
71
|
|
33
|
|
|
301
|
return (defined($val) && $val eq $class->sentinel); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |