line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Clustericious::Config::Password; |
2
|
|
|
|
|
|
|
|
3
|
15
|
|
|
15
|
|
9410
|
use Data::Dumper; |
|
15
|
|
|
|
|
97204
|
|
|
15
|
|
|
|
|
1111
|
|
4
|
15
|
|
|
15
|
|
106
|
use strict; |
|
15
|
|
|
|
|
22
|
|
|
15
|
|
|
|
|
472
|
|
5
|
15
|
|
|
15
|
|
65
|
use warnings; |
|
15
|
|
|
|
|
20
|
|
|
15
|
|
|
|
|
2296
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Password routines for Clustericious::Config |
8
|
|
|
|
|
|
|
our $VERSION = '0.30'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $Stashed; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub sentinel { |
14
|
71
|
|
|
71
|
0
|
608
|
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
|
89
|
my $class = shift; |
26
|
71
|
|
|
|
|
75
|
my $val = shift; |
27
|
71
|
|
33
|
|
|
252
|
return (defined($val) && $val eq $class->sentinel); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |