module PIM::Importer
Public Class Methods
import(content_type = nil, path = nil, input_stream = nil, input_size = nil, context = nil, &block)
click to toggle source
# File importer.rb, line 76 def self.import content_type = nil, path = nil, input_stream = nil, input_size = nil, context = nil, &block content_type ||= $content_type path ||= $path input_stream ||= $input_stream input_size ||= $input_size context ||= { :media_type => $media_type, :import_summary_id => $import_summary_id, :import_asset => $import_asset, :chunk_nr => $chunk_nr, :chunk_size => $chunk_size, :chunk_offset => $chunk_offset } handler = ImportHandler.new(content_type, path, input_stream, input_size, context) handler.import(&block) end