blib/script/oauthomatic_forget_tokens.pl untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl -w
2 # PODNAME: oauthomatic_forget_tokens
3 # ABSTRACT: remove remembered tokens for given site
4  
5 use strict;
6 use warnings;
7  
8  
9 {
10 package OAuthomaticForgetTokens;
11 use Moose;
12 our $VERSION = '0.0201'; # VERSION
13 with 'MooseX::Getopt';
14 has 'password_group' => (is=>'ro', isa=>'Str', required=>1);
15 has 'site_name' => (is=>'ro', isa=>'Str', required=>1);
16 has 'app' => (is=>'ro', isa=>'Bool', default=>'OAuthomatic');
17  
18 sub run {
19 my ($self) = @_;
20 die "Not yet implemented\n";
21 }
22 }
23  
24 my $app = OAuthomaticForgetTokens->new_with_options;
25 $app->run;
26  
27 __END__
28  
29 =pod
30  
31 =encoding UTF-8
32  
33 =head1 NAME
34  
35 oauthomatic_forget_tokens - remove remembered tokens for given site
36  
37 =head1 VERSION
38  
39 version 0.0201
40  
41 =head1 DESCRIPTION
42  
43 Drops OAuth tokens related to given site, if any are remembered.
44  
45 Assumes default keyring is in use;
46  
47 =head1 AUTHOR
48  
49 Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2015 by Marcin Kasperski.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut