lib/visage/iso.rb in nerdEd-visage-0.2.3 vs lib/visage/iso.rb in nerdEd-visage-0.2.4

- old
+ new

@@ -13,11 +13,16 @@ @name = @name.gsub( /\s/, '\ ' ) @destination_file_name = File.join( destination, @name ) end # Generate the iso file - def process - `hdiutil makehybrid -udf -udf-volume-name #{@name} -o #{@destination_file_name} #{@source}` + def process( test = false ) + command = "hdiutil makehybrid -udf -udf-volume-name #{@name} -o #{@destination_file_name} #{@source}" + if( test ) + puts command + else + system( command ) + end end end end \ No newline at end of file