6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/houdini/postback_processor.rb', line 6
def self.process(class_name, model_id, params)
task_manager = params.delete(:task_manager) || TaskManager
if params[:environment] != Houdini.environment
raise EnvironmentMismatchError, "Environment received does not match Houdini.environment"
end
if params[:api_key] != Houdini.api_key
raise APIKeyMistmatchError, "API key received doesn't match our API key."
end
task_manager.process class_name, model_id, params[:blueprint], params[:output], params[:verbose_output]
end
|