| 1 | package Analizo::Batch::Job::Directories; | ||
| 2 | |||
| 3 | 13 | ▶ | use parent qw( Analizo::Batch::Job Class::Accessor::Fast ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 13 | ▶ | use Cwd; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 7 | 6 | my ($class, $directory) = @_; | |
| 8 | 6 | $class->SUPER::new(id => $directory, directory => $directory); | |
| 9 | } | ||
| 10 | |||
| 11 | 13 | __PACKAGE__->mk_accessors(qw(oldcwd)); | |
| 12 | |||
| 13 | 3 | ▶ | sub prepare { |
|
Subroutine
prepare: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 3 | my ($self) = @_; | |
| 15 | 3 | $self->oldcwd(getcwd); | |
| 16 | 3 | chdir($self->directory); | |
| 17 | } | ||
| 18 | |||
| 19 | 1 | ▶ | sub cleanup { |
|
Subroutine
cleanup: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 20 | 1 | my ($self) = @_; | |
| 21 | 1 | chdir($self->oldcwd); | |
| 22 | } | ||
| 23 | |||
| 24 | 13 | 1; | |