root/lang/perl/plagger/lib/Plagger/Crypt/Pit.pm @ 7728

Revision 7728, 0.6 kB (checked in by cho45, 7 years ago)

lang/perl/plagger/lib/Plagger/Crypt/Pit.pm:

なんかメッセージの種類がへんだった

Line 
1package Plagger::Crypt::Pit;
2use strict;
3use Config::Pit;
4
5sub id { 'pit' }
6
7sub decrypt {
8        my ($self, $text) = @_;
9        my ($domain, $name, $desc) = split "/", $text, 3;
10        Plagger->context->log(debug => "Getting password from $domain $name ($desc)");
11        pit_get($domain, require => {
12                $name => "$desc"
13        })->{$name};
14}
15
16sub encrypt {
17        my ($self, $text) = @_;
18        die "Config::Pit encrypt";
19}
20
211;
22
23
24__END__
25
26=head1 NAME
27
28Plagger::Crypt::Pit - Use Config::Pit to get username and password
29
30=head1 SYNOPSIS
31
32  - module: Plugin::Foobar
33    config:
34      username: username
35      password: pit::foo/password/password of foo
Note: See TracBrowser for help on using the browser.