importing.rb revision 89575ed6ea1f9c9058164005c0c8a64e8aeae3a4
SOURCE_TYPES = %w( git svn )
STATES = %w( pending processing done failed )
included do
end
end
# do not allow new actions if running
end
# enqueues a clone job
end
# enqueues a synchronize job
# IMPORTANT: before calling this function, the user of the
# ontology versions created by the synchronization must be set!
end
# enqueues a remote job
update_state! 'pending'
end
update_state! 'processing'
update_state! 'done'
end
end
end
# creates a new repository and imports the contents from the remote repository
raise Repository::ImportError, "#{source} is not a #{type} repository" unless GitRepository.send "is_#{type}_repository?", source
params[:source_type] = type
params[:source_address] = source
r = Repository.new(params)
r
end
end
end