Sha256: 3d3a09b280461dd2248711eda50ddcd177f8a47361b75bd004ab8222bb8535d7
Contents?: true
Size: 790 Bytes
Versions: 29
Compression:
Stored size: 790 Bytes
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2015 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. require_relative 'base_downloader' require_relative 'utils' require_relative 'middleware/middleware' module GoodData module Bricks class Pipeline # Pipeline preparation code def self.prepare(pipeline) pipeline.reverse.reduce(nil) do |memo, app| if memo.nil? app.respond_to?(:new) ? (app.new) : app else if app.respond_to?(:new) app.new(:app => memo) else app.app = memo app end end end end end end end
Version data entries
29 entries across 29 versions & 2 rubygems