Make gruntmasterd use Redis
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Generator / File.pm
index 1c37a8d2edf12ee0bfc25c98a6029470aa056e2d..0531def67a1e45783f2602e25ba0cb41ef857b0b 100644 (file)
@@ -4,7 +4,7 @@ use 5.014000;
 use strict;
 use warnings;
 
-use File::Copy qw/cp/;
+use File::Slurp qw/write_file/;
 use Log::Log4perl qw/get_logger/;
 
 our $VERSION = '0.001';
@@ -14,7 +14,7 @@ our $VERSION = '0.001';
 sub generate{
   my ($test, $meta) = @_;
   get_logger->trace("Generating test $test ...");
-  cp "$test.in", 'input' or die "Cannot copy input for test $test: $!";
+  write_file 'input', $meta->{infile}[$test - 1]
 }
 
 1
This page took 0.010491 seconds and 4 git commands to generate.