MooseX::Role::DryRunnable::Base - base role for add a dry_run option into your Moose Class
package Foo; use Moose; with 'MooseX::Role::DryRunnable::Base' ; sub is_dry_run { # required ! 1 } sub on_dry_run { # required ! Test::More::ok(1, "should be called"); }
Base role for MooseX::Role::DryRunnable, you can combine this role with MooseX::Role::DryRunnable::Attribute
This method must return one boolean value. If true, we will execute the alternate code described in `on_dry_run`. You must implement!
This method will receive the method name and all of the parameters form the original method. You must implement!
MooseX::Role::DryRunnable::Attribute, MooseX::Role::DryRunnable
There are no known bugs in this module.
Please report problems to Tiago Peczenyj <tiago.peczenyj@gmail.com>, or (preferred) to this package's RT tracker at <bug-MooseX-Role-DryRunnable@rt.cpan.org>.
Tiago Peczenyj <tiago.peczenyj@gmail.com>
To install MooseX::Role::DryRunnable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Role::DryRunnable
CPAN shell
perl -MCPAN -e shell install MooseX::Role::DryRunnable
For more information on module installation, please visit the detailed CPAN module installation guide.