App-Raps2
view release on metacpan or search on metacpan
lib/App/Raps2.pm view on Meta::CPAN
=item $raps2->generate_password()
Runs B<pwgen_cmd> (as specified in B<new> or the config file) and returns its
first word of output, without trailing newlines / whitespaces.
=back
=head2 INTERNAL
You usually don't need to call these methods by yourself.
=over
=item $raps2->create_config()
Creates a password file and asks the user to set a master password.
=item $raps2->load_config()
Load config. Automatically called by B<new>.
=item $raps2->create_defaults()
Creates a defaults config file containing the default key setup cost and pwgen
command.
=item $raps2->load_defaults()
Loads the defaults file. Automatically called by B<new>.
=item $raps2->pw()
Returns the App::Raps2::Password(3pm) object.
=item $raps2->file_to_hash( I<$file> )
Reads $file (lines with key/value separated by whitespace) and returns a
hashref with its key/value pairs.
=item $raps2->sanity_check()
Create working directories (~/.config/raps2 and ~/.local/share/raps2, or the
respective XDG environment variable contents), if they don't exist yet.
Automatically called by B<new>.
Calls B<create_config> and B<create_defaults> if no configs were found.
=back
=head1 DIAGNOSTICS
If anything goes wrong, B<App::Raps2> will die with a backtrace (using
B<confess> from Carp(3pm)).
=head1 DEPENDENCIES
App::Raps2::Password(3pm), App::Raps2::UI(3pm), File::BaseDir(3pm),
File::Slurp(3pm).
=head1 BUGS AND LIMITATIONS
Be aware that the password handling API is not yet stable.
Also, so far the development concentrated on B<raps2>, so this module / its
documentation may not be completely up-to-date.
=head1 AUTHOR
Copyright (C) 2011-2015 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt>
=head1 LICENSE
0. You just DO WHAT THE FUCK YOU WANT TO.
( run in 1.347 second using v1.01-cache-2.11-cpan-39bf76dae61 )