json, an output representation, first pass
[software/sisu] / lib / sisu / hub.rb
index c5bd0ced8523e3bd0bad3a14f907707007cf2ca7..49d569a5b1874e1fdc715055c0c709db053f8521 100644 (file)
@@ -129,6 +129,7 @@ module SiSU
       actions.outputs.each_file.html?
       actions.outputs.each_file.xhtml?
       actions.outputs.each_file.xml?
+      actions.outputs.each_file.json?
       actions.outputs.each_file.pdf?
       actions.outputs.each_file.man_or_info?
       actions.outputs.each_file.po4a_make?
@@ -260,7 +261,7 @@ module SiSU
       ensure
         if FileTest.directory?(env.processing_path.processing) \
         and FileTest.directory?(env.processing_path.processing_base_tmp) \
-        and env.processing_path.processing_base_tmp =~/#{env.processing_path.processing}/ \
+        and env.processing_path.processing_base_tmp =~ /#{env.processing_path.processing}/ \
         and env.processing_path.processing_base_tmp =~/^\/tmp\/\S+/ \
         and not argv.inspect =~/"--maintenance"|"-M"/
           FileUtils::cd(env.processing_path.processing_base_tmp) do