| Task-Pluggable documentation | Contained in the Task-Pluggable distribution. |
Task::Pluggable - Pluggable task module
Version 0.02
Create new task directory
for example
mkdir task_dir cd task_dir perl -MTask::Pluggable -e "Task::Pluggable::create" ./bin/ptm
create instanse
create task directory and task script
run task ./bin/ptm <task_name>
internel code is
$task = new Task::Pluggable(); $task->run(Task::Pluggable::CommandLineTaskManager);
Masafumi Yoshida, <masafumi.yoshida820 at gmail.com>
Please report any bugs or feature requests to bug-task-pluggable at rt.cpan.org, or through
the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Task-Pluggable. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Task::Pluggable
You can also look for information at:
Copyright 2009 Masafumi Yoshida, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Task-Pluggable documentation | Contained in the Task-Pluggable distribution. |
package Task::Pluggable; use warnings; use strict; use base qw(Class::Data::Inheritable Class::Accessor); use Task::Pluggable::CommandLineTaskManager; __PACKAGE__->mk_classdata('task_manager');
our $VERSION = '0.02';
sub new{ my $class = shift; my $application_name = shift; my $self = $class->SUPER::new(); return $self; }
sub create { my $self = shift; my $command_line = Task::Pluggable::CommandLineTaskManager->new(); $command_line->task_name('create_task_env'); $command_line->do_task(); }
sub run{ my $self = shift; my $manager = shift; $self->task_manager($manager); $self->task_manager->load_args(); $self->task_manager->do_task(); }
1; # End of Task::Pluggable