| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package App::Maisha::Plugin::Test; |
|
2
|
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
46987
|
use strict; |
|
|
5
|
|
|
|
|
14
|
|
|
|
5
|
|
|
|
|
212
|
|
|
4
|
5
|
|
|
5
|
|
30
|
use warnings; |
|
|
5
|
|
|
|
|
10
|
|
|
|
5
|
|
|
|
|
277
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.19'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
#---------------------------------------------------------------------------- |
|
9
|
|
|
|
|
|
|
# Library Modules |
|
10
|
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
27
|
use base qw(App::Maisha::Plugin::Base); |
|
|
5
|
|
|
|
|
7
|
|
|
|
5
|
|
|
|
|
1263
|
|
|
12
|
5
|
|
|
5
|
|
29
|
use base qw(Class::Accessor::Fast); |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
1715
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
#---------------------------------------------------------------------------- |
|
15
|
|
|
|
|
|
|
# Accessors |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors($_) for qw(api users); |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
#---------------------------------------------------------------------------- |
|
20
|
|
|
|
|
|
|
# Public API |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub login { |
|
23
|
1
|
|
|
1
|
1
|
2
|
my ($self,$config) = @_; |
|
24
|
|
|
|
|
|
|
|
|
25
|
1
|
|
|
|
|
5
|
$self->api($self); |
|
26
|
1
|
|
|
|
|
8
|
return 1; |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
App::Maisha::Plugin::Test - Maisha Test Plugin |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
maisha |
|
40
|
|
|
|
|
|
|
maisha> use Test |
|
41
|
|
|
|
|
|
|
use ok |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
App::Maisha::Plugin::Test is used to test Maisha responds correctly when |
|
46
|
|
|
|
|
|
|
plugins do not support a particular method call. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 METHODS |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 Constructor |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=over 4 |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * new |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=back |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 Process Methods |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=over 4 |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item * login |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Login to the service. |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=back |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 API Methods |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
There are no API methods for this plugin. |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
For further information regarding the commands and configuration, please see |
|
75
|
|
|
|
|
|
|
the 'maisha' script included with this distribution. |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
L<App::Maisha> |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 WEBSITES |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=over 4 |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * Main Site: L<http://maisha.grango.org> |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item * Git Repo: L<http://github.com/barbie/maisha/tree/master> |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item * RT Queue: L<RT: http://rt.cpan.org/Public/Dist/Display.html?Name=App-Maisha> |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=back |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 AUTHOR |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Barbie, <barbie@cpan.org> |
|
94
|
|
|
|
|
|
|
for Miss Barbell Productions <http://www.missbarbell.co.uk>. |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Copyright (C) 2009-2014 by Barbie |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
This distribution is free software; you can redistribute it and/or |
|
101
|
|
|
|
|
|
|
modify it under the Artistic License v2. |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |