| 1 | package HackaMol::Roles::PathRole; | ||
| 2 | 11 | $HackaMol::Roles::PathRole::VERSION = '0.053'; | |
| 3 | #ABSTRACT: | ||
| 4 | 11 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 11 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 11 | ▶ | use MooseX::Types::Path::Tiny qw/Path Paths AbsPath AbsPaths/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 11 | has 'in_fn' => ( | |
| 9 | is => 'rw', | ||
| 10 | isa => Path, | ||
| 11 | coerce => 1, | ||
| 12 | predicate => 'has_in_fn', | ||
| 13 | ); | ||
| 14 | |||
| 15 | 11 | has 'out_fn' => ( | |
| 16 | is => 'rw', | ||
| 17 | isa => Path, | ||
| 18 | coerce => 1, | ||
| 19 | predicate => 'has_out_fn', | ||
| 20 | ); | ||
| 21 | |||
| 22 | 11 | has 'err_fn' => ( | |
| 23 | is => 'rw', | ||
| 24 | isa => Path, | ||
| 25 | coerce => 1, | ||
| 26 | predicate => 'has_err_fn', | ||
| 27 | ); | ||
| 28 | |||
| 29 | 11 | has 'log_fn' => ( | |
| 30 | is => 'rw', | ||
| 31 | isa => Path, | ||
| 32 | coerce => 1, | ||
| 33 | predicate => 'has_log_fn', | ||
| 34 | ); | ||
| 35 | |||
| 36 | 11 | has 'forts' => ( | |
| 37 | is => 'ro', | ||
| 38 | isa => Paths, | ||
| 39 | coerce => 1, | ||
| 40 | predicate => 'has_forts', | ||
| 41 | ); | ||
| 42 | |||
| 43 | 11 | has 'homedir' => ( | |
| 44 | is => 'ro', | ||
| 45 | isa => AbsPath, | ||
| 46 | coerce => 1, | ||
| 47 | default => '.', | ||
| 48 | ); | ||
| 49 | |||
| 50 | 11 | has 'scratch' => ( | |
| 51 | is => 'ro', | ||
| 52 | isa => AbsPath, | ||
| 53 | coerce => 1, | ||
| 54 | predicate => 'has_scratch', | ||
| 55 | ); | ||
| 56 | |||
| 57 | 11 | has 'data' => ( | |
| 58 | is => 'ro', | ||
| 59 | isa => AbsPath, | ||
| 60 | coerce => 1, | ||
| 61 | predicate => 'has_data', | ||
| 62 | ); | ||
| 63 | |||
| 64 | 11 | has 'dirs' => ( | |
| 65 | is => 'ro', | ||
| 66 | isa => AbsPaths, | ||
| 67 | coerce => 1, | ||
| 68 | predicate => 'has_dirs', | ||
| 69 | ); | ||
| 70 | |||
| 71 | 11 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 72 | |||
| 73 | 11 | 1; | |
| 74 | |||
| 75 | __END__ | ||