| 1 | package PerlActor::Command::Run; | ||
| 2 | use strict; | ||
| 3 | |||
| 4 | use base 'PerlActor::Command'; | ||
| 5 | |||
| 6 | use PerlActor::Exception; | ||
| 7 | |||
| 8 | #=============================================================================================== | ||
| 9 | # Public Methods | ||
| 10 | #=============================================================================================== | ||
| 11 | |||
| 12 | sub execute | ||
| 13 | { | ||
| 14 | my $self = shift; | ||
| 15 | my $file = $self->getParam(0); | ||
| 16 | $self->executeScript($file); | ||
| 17 | } | ||
| 18 | |||
| 19 | #=============================================================================================== | ||
| 20 | # Protected Methods - Don't even think about calling these from outside the class. | ||
| 21 | #=============================================================================================== | ||
| 22 | |||
| 23 | # Keep Perl happy. | ||
| 24 | 1; |