File Coverage

blib/lib/Facebook/Graph/Cmdline.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Facebook::Graph::Cmdline;
2             {
3             $Facebook::Graph::Cmdline::VERSION = '0.123490';
4             }
5              
6             #ABSTRACT: Extends Facebook::Graph with embedded HTTP for Oauth and token saving
7              
8 1     1   1318 use Any::Moose;
  1         6632  
  1         6  
9 1     1   584 use v5.10;
  1         4  
  1         104  
10              
11             extends 'Facebook::Graph';
12             with 'Facebook::Graph::Cmdline::Role::HTTPAccessToken';
13              
14             #Is there a better way to do MooseX vs MouseX 'with' loading?
15             #can import with "use Any::Moose 'X::SimpleConfig'" but that doesn't
16             #provide the action of "with," Mo*se::Util::apply_all_roles()
17             if (Any::Moose::moose_is_preferred)
18             {
19             with 'MooseX::SimpleConfig';
20             with 'MooseX::Getopt';
21             }
22             else
23             {
24             with 'MouseX::SimpleConfig';
25             with 'MouseX::Getopt';
26             }
27             # requires provided by ::SimpleConfig
28             with 'Facebook::Graph::Cmdline::Role::SaveAccessToken';
29              
30 1     1   7 no Any::Moose;
  1         1  
  1         4  
31             __PACKAGE__->meta->make_immutable;
32              
33             __END__
34             =pod
35              
36             =head1 NAME
37              
38             Facebook::Graph::Cmdline - Extends Facebook::Graph with embedded HTTP for Oauth and token saving
39              
40             =head1 VERSION
41              
42             version 0.123490
43              
44             =head1 AUTHOR
45              
46             Andrew Grangaard <spazm@cpan.org>
47              
48             =head1 COPYRIGHT AND LICENSE
49              
50             This software is copyright (c) 2012 by Andrew Grangaard.
51              
52             This is free software; you can redistribute it and/or modify it under
53             the same terms as the Perl 5 programming language system itself.
54              
55             =cut
56