NAME
MYDan::Util::Pass
SYNOPSIS
use MYDan::Util::Pass;
/path/pass
---
'host{1~10}':
user1: pass1
user2: pass2
default: pass
default:
u1: p1
u2: p2
default: p
my $pass = MYDan::Util::Pass->new( conf => '/path/pass' );
my $pass = MYDan::Util::Pass->new( conf => '/path/pass', range => $range );
my %pass = $pass->pass( [ 'host1', 'host2' ] );
%pass
host1: +{ user1 => pass1, user2 => pass2 },
host2: +{ user1 => pass1, user2 => pass2 },
my %pass = $pass->pass( [ 'host1', 'host2' ] => 'user1' );
%pass
host1: pass1
host2: pass1
my %pass = $pass->pass( 'host1', 'host2' );
%pass
host1: [ user1, pass1 ]
host2: [ user2, pass2 ]