]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page.pm
Add gensrc
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page.pm
index e0086507d16027ecdd5100512b83cfcf5ebb797a..eedbec54e17d2e865b8ec4cfe6ddc96224d2ed03 100644 (file)
@@ -10,7 +10,7 @@ use File::Path qw/make_path/;
 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;
@@ -77,6 +77,17 @@ sub generate{
        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!
This page took 0.024149 seconds and 4 git commands to generate.