aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/odf.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-11-11 00:08:44 -0500
committerRalph Amissah <ralph@amissah.com>2011-11-11 00:08:44 -0500
commitb59529b25a639465489888861f739c5a8ef9d4be (patch)
tree0b5c3d699faec134713f4a2c03da6b4e2f4d8156 /lib/sisu/v3/odf.rb
parentv3: FileUtils, make explicit calls (more verbose, easier to find) (diff)
v3: FileUtils, replace system callssisu_3.1.4
Diffstat (limited to 'lib/sisu/v3/odf.rb')
-rw-r--r--lib/sisu/v3/odf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v3/odf.rb b/lib/sisu/v3/odf.rb
index 4cb6664b..5a095ba9 100644
--- a/lib/sisu/v3/odf.rb
+++ b/lib/sisu/v3/odf.rb
@@ -120,7 +120,7 @@ module SiSU_ODF
unless @md.opt.cmd =~/[MV]/ #check maintenance flag
if @env.processing_path.odt =~/od[ft]/
#p "rm -r #{@env.processing_path.odt}" if @md.opt.cmd =~/v/
- system("rm -r #{@env.processing_path.odf_pth}")
+ FileUtils::rm_r(@env.processing_path.odf_pth)
#system("rm -r #{@env.processing_path.odt}")
end
end
@@ -748,8 +748,8 @@ WOK
Dir.chdir(@env.processing_path.odt)
system("
zip -qr #{opendoc} *
- mv #{opendoc} #{@md.file.place_file.odt.dir}
")
+ FileUtils::mv(opendoc, @md.file.place_file.odt.dir)
Dir.chdir(pwd)
end
end