| 1 | package Monitoring::Reporter::Cmd::Command::actions; | ||
| 2 | { | ||
| 3 | 1 | $Monitoring::Reporter::Cmd::Command::actions::VERSION = '0.01'; | |
| 4 | } | ||
| 5 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | $Monitoring::Reporter::Cmd::Command::actions::AUTHORITY = 'cpan:TEX'; | |
| 7 | } | ||
| 8 | # ABSTRACT: enable all actions from the CLI | ||
| 9 | |||
| 10 | 1 | ▶ | use 5.010_000; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use mro 'c3'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use feature ':5.10'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | # use IO::Handle; | ||
| 18 | # use autodie; | ||
| 19 | # use MooseX::Params::Validate; | ||
| 20 | # use Carp; | ||
| 21 | # use English qw( -no_match_vars ); | ||
| 22 | # use Try::Tiny; | ||
| 23 | 1 | ▶ | use Data::Dumper; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 24 | |||
| 25 | # extends ... | ||
| 26 | 1 | extends 'Monitoring::Reporter::Cmd::Command'; | |
| 27 | # has ... | ||
| 28 | # with ... | ||
| 29 | # initializers ... | ||
| 30 | |||
| 31 | # your code here ... | ||
| 32 | 0 | ▶ | sub execute { |
|
Subroutine
execute: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | 0 | my $self = shift; | |
| 34 | |||
| 35 | 0 | my $status = $self->mr()->enable_actions(); | |
| 36 | |||
| 37 | 0 | return 1; | |
| 38 | } | ||
| 39 | |||
| 40 | 0 | ▶ | sub abstract { |
|
Subroutine
abstract: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | 0 | return 'Enable all actions'; | |
| 42 | } | ||
| 43 | |||
| 44 | 1 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 45 | 1 | __PACKAGE__->meta->make_immutable; | |
| 46 | |||
| 47 | 1 | 1; | |
| 48 | |||
| 49 | __END__ | ||