| 1 | package Facebook::Graph::Cmdline; | ||||||||||
| 2 | { | ||||||||||
| 3 | 2 | $Facebook::Graph::Cmdline::VERSION = '0.123490'; | |||||||||
| 4 | } | ||||||||||
| 5 | |||||||||||
| 6 | #ABSTRACT: Extends Facebook::Graph with embedded HTTP for Oauth and token saving | ||||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use v5.10; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 2 | extends 'Facebook::Graph'; | |||||||||
| 12 | 2 | 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 | 2 | ▶ | if (Any::Moose::moose_is_preferred) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | { | ||||||||||
| 19 | 1 | with 'MooseX::SimpleConfig'; | |||||||||
| 20 | 1 | with 'MooseX::Getopt'; | |||||||||
| 21 | } | ||||||||||
| 22 | else | ||||||||||
| 23 | { | ||||||||||
| 24 | 1 | with 'MouseX::SimpleConfig'; | |||||||||
| 25 | 1 | with 'MouseX::Getopt'; | |||||||||
| 26 | } | ||||||||||
| 27 | # requires provided by ::SimpleConfig | ||||||||||
| 28 | 2 | with 'Facebook::Graph::Cmdline::Role::SaveAccessToken'; | |||||||||
| 29 | |||||||||||
| 30 | 2 | ▶ | no Any::Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 31 | 2 | __PACKAGE__->meta->make_immutable; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||