Sha256: 457ec2a3c2caa8aa4e7461b156352e2727a837e6c3688fb98cc081352bdd2809
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
# encoding: UTF-8 require_relative 'base_downloader' require_relative 'utils' Dir[File.dirname(__FILE__) + '/commands/**/*_cmd.rb'].each do |file| require file end require_relative 'middleware/middleware' module GoodData::Bricks class Pipeline def self.prepare(pipeline) pipeline.reverse.reduce(nil) do |memo, app| if memo.nil? app.respond_to?(:new) ? (app.new) : app else app.respond_to?(:new) ? (app.new(:app => memo)) : (app.app = memo; app) end end end end # Brick base class class Brick def log(message) logger = @params[:gdc_logger] logger.info(message) unless logger.nil? end def name self.class end def version fail 'Method version should be reimplemented' end def call(params={}) @params = params '' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.0 | lib/gooddata/bricks/brick.rb |