Sha256: 62f7b83538634537ddf31b423257d66ecd40e89d6139a02b42264ff28c9f0ce5
Contents?: true
Size: 827 Bytes
Versions: 10
Compression:
Stored size: 827 Bytes
Contents
# encoding: UTF-8 require 'salesforce_bulk_query' require_relative 'base_middleware' module GoodData module Bricks class BulkSalesforceMiddleware < Bricks::Middleware DEFAULT_VERSION = '29.0' def self.create_client(params) salesforce = nil if params['salesforce_client'] client = params['salesforce_client'] client.authenticate! salesforce = SalesforceBulkQuery::Api.new(client, :logger => params['GDC_LOGGER']) # SalesforceBulkQuery adds its own Restforce logging so turn it off Restforce.log = false if params['GDC_LOGGER'] end params.merge('salesforce_bulk_client' => salesforce) end def call(params) params = self.class.create_client(params) @app.call(params) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems