Sha256: 4ebea7bccd6c332050cbd5ef6d8504b46b0b4b98c94eb7fe5397eceae6eae828

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 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
      puts "hdiutil makehybrid -udf -udf-volume-name #{@name} -o #{@destination_file_name} #{@source}"
    end
    
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nerdEd-visage-0.1.1 lib/visage/iso.rb
nerdEd-visage-0.1.2 lib/visage/iso.rb
nerdEd-visage-0.1.3 lib/visage/iso.rb
nerdEd-visage-0.2.0 lib/visage/iso.rb
nerdEd-visage-0.2.1 lib/visage/iso.rb