use Gruntmaster::Page;
SUBSCRIBE 'genpage', \&Gruntmaster::Page::generate;
+SUBSCRIBE 'gensrc', \&Gruntmaster::Page::gensrc;
+SUBSCRIBE 'genarticle', \&Gruntmaster::Page::genarticle;
WAIT_FOR_MESSAGES 86400 while 1;
1;
use File::Slurp qw/write_file/;
use IO::Compress::Gzip qw/gzip/;
use IO::File;
-use Gruntmaster::Data qw/PUBLISH/;
+use Gruntmaster::Data;
our $VERSION = '0.001';
our @generators;
close $typemap;
}
+sub gensrc{
+ my ($job) = @_;
+ my $ext = job_extension $job;
+ make_path "log/src/";
+ write_file "log/src/$job.$ext", job_inmeta($job)->{files}{prog}{content};
+}
+
+sub genarticle{
+
+}
+
1;
__END__
# Below is stub documentation for your module. You'd better edit it!