cron officially works!!!

This commit is contained in:
JT Smith 2006-03-19 20:25:52 +00:00
parent 18e8de5856
commit 524ea87d36
4 changed files with 146 additions and 51 deletions

View file

@ -110,18 +110,13 @@ sub new {
name => 'Spectre',
);
POE::Session->create(
object_states => [ $self => {_start=>"_start", _stop=>"_stop", "shutdown"=>"_stop","test"=>"test"} ],
args=>[["shutdown","test"]]
object_states => [ $self => {_start=>"_start", _stop=>"_stop", "shutdown"=>"_stop"} ],
args=>[["shutdown"]]
);
$self->{_cron} = Spectre::Cron->new($config, $debug);
$self->{_workflow} = Spectre::Workflow->new($config, $debug);
$self->{_cron} = Spectre::Cron->new($config, $self->{_workflow}, $debug);
POE::Kernel->run();
}
sub test {
my $arg = $_[ARG1];
use JSON;
print objToJson($arg);
}