Sha256: 3589dfa7cb548055bd35281e8409d956e66adfe77fe5f346fb2135cfb8a845a5
Contents?: true
Size: 725 Bytes
Versions: 2
Compression:
Stored size: 725 Bytes
Contents
module Visage class ISO # Initialize the ISO # +options+ is a Hash containing ISO building details # # Returns ISO def initialize( source_file, destination ) @source = source_file.gsub( /\s/, '\ ' ) @name = File.basename( source_file ) @name = @name.sub( /\.cdr|\.dvdmedia/, '' ) @name = @name.gsub( /\s/, '\ ' ) @destination_file_name = File.join( destination, @name ) end # Generate the iso file 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nerdEd-visage-0.2.4 | lib/visage/iso.rb |
nerdEd-visage-0.2.5 | lib/visage/iso.rb |